#chris-flutter-savecard
1 messages · Page 1 of 1 (latest)
So I'm basically wondering if it is possible to just create a customer and save the payment method with that customer
@stuck trout we don't really know anything about this package as it's built by a third-party developer
To save card details for future payments, you need to use SetupIntents
it seems the library does support that option so that's what you would use
Does Stripe have any offical flutter package?
chris-flutter-savecard
no we do not
that's the closest to one, but it's not maintained by us. It should work fine though
For saving data into my database what should I save
Like can I reference a customer id to charge them or do I need to store the SetupIntent Id to charge them later. I would want to use this id multiple times
you should save the Customer id cus_123 and the PaymentMethod id pm_123 to charge them in the future.
` // 2. Gather customer billing information (ex. email)
final billingDetails = BillingDetails(
name: "Test User",
email: 'email@stripe.com',
phone: '+48888000888',
address: Address(
city: 'Houston',
country: 'US',
line1: '1459 Circle Drive',
line2: '',
state: 'Texas',
postalCode: '77063',
),
); // mo/ mocked data for tests
// 3. Confirm setup intent`
So that code is from one of the examples I found for SetupIntents with the flutter package. I'm wondering is a full billing information needed?
It also seems like they don't provide a form to grab that data so would it be fine if I made my own or would i have PCI compliance issues.
billing details are optional! (it's all in our docs really)
and PCI is complex, I'd recommend using the flutter package which I think is based on our own mobile SDKs
Is that not the package I listed?
you asked if you could made your own which I don't really understand what it means. That flutter package likely has a real UI component for collecting card details (and other payment method details)
So to be clear the billing details seem to never be collected they are hard coded in examples like I have wrote above.
billing details are not really related to PCI
Thanks. This has helped. I will look into everything you sent.