Marketplace: https://marketplace.yoyogames.com/assets/5176/card-scanner-cardio
Category: Extensions
Price:
Modules: Android
Description:
An easy way to scan user's Credit/Debit cards for purchases! Also provides a text input fallback for the users that do not have a camera.
Can scan the following information from the camera:
- Credit Card Number
- Expiration Date
- CVC/CCC
- Postcode
- Cardholder Name
Code:
if (async_load[? "type"] == "card_info" && !async_load[? "cancelled"])
{
//censor all but last 4 digits
var stl = string_length(async_load[? "card_number"]);
last4 = string_repeat("****", 3) + string_copy(async_load[? "card_number"], stl - 4, 4);
cvc = async_load[? "cvv"];
expiry_month = async_load[? "exp_month"];
expiry_year = async_load[? "exp_year"];
}
NOTE: You must comply with your appropriate jurisdictions laws about the storage and transmission of Credit Card/Sensitive information.
Extension supports Android only. Includes a usage demo.