Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment with card #168

Open
TetrixGauss opened this issue Sep 1, 2023 · 5 comments
Open

Payment with card #168

TetrixGauss opened this issue Sep 1, 2023 · 5 comments

Comments

@TetrixGauss
Copy link

How can i create and send a payment with card through the package?

@preteambuy
Copy link

@TetrixGauss did u figure it out?

@preteambuy
Copy link

@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.

@Cilestal
Copy link

Cilestal commented Nov 17, 2023

@preteambuy

  1. Create a map with credit card properties
Map<String, dynamic> toPaymentMethod() {
   return {
     "type": "card",
     "card[number]": number,
     "card[exp_month]": expMonth,
     "card[exp_year]": expYear,
     "card[cvc]": cvc,
   };
 }
  1. Create payment method
    final method = await StripeApi.instance.createPaymentMethod(card.toPaymentMethod());

@ezet
Copy link
Owner

ezet commented Nov 17, 2023

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.

@preteambuy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants