Open TetrixGauss opened 1 year ago
@TetrixGauss did u figure it out?
@ezet can you hellp with a sample that shows how to tokenize the card? I was using the previous versions of the SDK and was using card.
@preteambuy
Map<String, dynamic> toPaymentMethod() {
return {
"type": "card",
"card[number]": number,
"card[exp_month]": expMonth,
"card[exp_year]": expYear,
"card[cvc]": cvc,
};
}
final method = await StripeApi.instance.createPaymentMethod(card.toPaymentMethod());
I would not recommend collecting card details or adding payment methods using this library anymore, as you will be required to fill in the SAC D form for PCI compliance, which is the strictest and most demanding requirements. I recommend using https://pub.dev/packages/flutter_stripe to add/manage/tokenize card details, and then you can use this library to build the rest of the payment flow.
I would not recommend collecting card details or adding payment methods using this library anymore, as you will be required to fill in the SAC D form for PCI compliance, which is the strictest and most demanding requirements. I recommend using https://pub.dev/packages/flutter_stripe to add/manage/tokenize card details, and then you can use this library to build the rest of the payment flow.
Thanks @ezet
How can i create and send a payment with card through the package?