#newtreyes
1 messages · Page 1 of 1 (latest)
Hi 👋
Hi @stone atlas
Which integration are you using?
You mentioned the Android SDK, are you using it with an M2 reader?
Okay and can I see the request that creates the Payment Method you are retrieving in that screenshot?
The instructions in this guide https://stripe.com/docs/terminal/features/saving-cards/save-cards-directly?terminal-sdk-platform=android have you either creating the Customer and including them in the Setup Intent creation on the server, or attaching the created PM to the customer on the server.
This is the payment intent creation request: req_jwgxel9FuADkWQ
I am using a payment intent
no setup intent
Maybe we need to manually attach it?
Okay but you aren't confirming the PI, you aren't using manual capture either
So I'm kind of confused. You Update the PI instead to attach a Payment Method
https://dashboard.stripe.com/test/logs/req_imwPLD6kHadLYl
I am following this guide
And you are calling the processPayment() function?
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=android#process-payment
Hmmm... I"m going to need to rebuild my Android terminal integration. When I got started you couldn't create Payment Intents client side 🤔
I am creating the Payment Intent on the server side
How are you attaching the card? What functions does your integration call?
Is it just collectPaymentMethdo() and processPayment()?
Terminal.getInstance().collectPaymentMethod() then Terminal.getInstance().processPayment()
Or are you using the optional step here: https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=android#collect-inspect-payment-method
👋 taking over here
Hi @teal glen
So I am looking at https://dashboard.stripe.com/test/logs/req_imwPLD6kHadLYl and I see the Customer Id on the response, it's inside the PaymentIntent object
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is that what you were looking for?
Yes I remember that property is only set if the PaymentMethod is attached to the Customer. Here it is a Card Present PaymentMethod, not meant to be reused so it's not attached. Let me find the explain Doc again
thank you, sir
Ok so it's explained here https://stripe.com/docs/terminal/features/saving-cards/save-after-payment
When you successfully process a payment, the returned object contains a successful charge ID. This charge contains a generated_card ID, which represents the ID of a card PaymentMethod that’s used to charge the saved card.
If you look at the confirmation call again, the PM inside generated_card is different, it's pm_1NQfAIIJwkxnVmNVVSuaCyIf
while the PM you were looking at was pm_1NQfAIIJwkxnVmNVEzFQ4P9G, a card present, non-reusable PM
pm_1NQfAIIJwkxnVmNVVSuaCyIf is the reusable PM and has been attached to your Customer already
I tried to explain. 9G is the card present, in person PM and it's not meant to be reused, so we generated If for you to reuse online