#ian_code

1 messages ยท Page 1 of 1 (latest)

limber owlBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1415270763895853086

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

waxen crater
#

FWIW, the Flutter SDK is not an official Stripe SDK and we're unable to support it. You'd need to speak with that team directly for specific SDK support

I can help overall with your Stripe integration though

#

But unclear on next steps, if able to attach the Payment Method client side to an existing payment intent?
I imagine there will be some method in the Flutter SDK to support intent confirmation with a wallet card

#

Should be possible client-side, yes as that is how our native mobile SDKs (that Flutter wraps) does it

rigid mantle
#

thanks, assuming we get the Payment Method, what does a supported integration look like to attach that to an existing payment intent?
I understand that Flutter SDK piggy backs on React Native, so something similar to how it would work for React Native would be of interest

waxen crater
rigid mantle
#

this methods, don't appear to allow collecting the shipping address/filtering the shipping address selection to a specific country?

#

we found "createPlatformPayPaymentMethod" that allows creating the dialog, to allow collecting shipping address, with a specific country filter, but unsure how to tie this back in

waxen crater
rigid mantle
#

Shipping address doesn't appear to be an option for Google Pay on this?

waxen crater
#

Yeah I don't think you can get shipping details at all in any RN method

rigid mantle
#

the "createPlatformPayPaymentMethod" dialog appeared to work, but what to do with the Payment Method afterwards

waxen crater
#

As the wallet PM will be of type: 'card'

rigid mantle
waxen crater
#

Not sure I follow

rigid mantle
#

the base param doesn't have the "allowedCountryCodes" on it.

#

having a look at what you suggested though, for the other flow

limber owlBOT
rigid mantle
#

do you have some examples of passing pm_xxx to confirmPayment , just looking to see how pass "paymentMethodId" down, and if anything else needed.

slow creek
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

rigid mantle
#

are any other values required, I see

            paymentMethodId: string;
            cvc?: string;
            billingDetails?: BillingDetails;
            mandateData?: MandateData;
            metadata?: MetaData;
        };```
#

but they are ? optional

slow creek
#

no only paymentMethodId

rigid mantle
#

just checking we can see this in the Flutter SDK

#

does the shipping address that is collected, get sent to Stripe on the payment intent?

#

just seen a transaction go through, but can only see billing address.

slow creek
#

yes shipping is only saved in the case of CheckoutSessions

rigid mantle
#

ok, so for us to store the shipping address in our system?

slow creek
#

yes

rigid mantle
#

on the createPlatformPayPaymentMethod
for google pay has an amount, but apple pay doesn't, only has "cartItems".
Wondering if this is required to pass the list of items buying for apple pay, rather than the amount?

And if we can't get the amount on the payment intent that is already created?

slow creek
#

createPlatformPayPaymentMethod is this a flutter API?

slow creek
#

why not just use the PaymentSheet

rigid mantle
#

the payment sheet doesn't appear to allow collecting shipping address (at least for google pay)

#

and doesn't appear to allow filtering of shipping address, or allow selection from Google Pay/Apple Pay saved addresses

#

required manual entry of address information.

#

query, what if the amount on the payment method collection form, doesn't match the amount on the payment intent trying to pay with? Would that error?

slow creek
#

So basically you should either use the PaymentSheet or the Payment Element in addition to the Address Element

rigid mantle
#

for google pay & apple pay, we can get the address from those platform payments.

slow creek
#

not directly no

rigid mantle
#

looking for an answer on this one,
"query, what if the amount on the payment method collection form, doesn't match the amount on the payment intent trying to pay with? Would that error?"
If we were to launch the payment method collection form, before creating the payment intent.
Just want to ensure that both have the same price

#

we do have access to the shipping address after "createPlatformPayPaymentMethod"

slow creek
rigid mantle
#

ok will test, see what happens.

limber owlBOT