#newtreyes

1 messages · Page 1 of 1 (latest)

tribal oxideBOT
stone atlas
#

Hi 👋

steady pollen
#

Hi @stone atlas

stone atlas
#

Which integration are you using?

steady pollen
stone atlas
#

You mentioned the Android SDK, are you using it with an M2 reader?

steady pollen
#

Yes

#

M2 reader

#

plan to use Tap to Pay too

stone atlas
#

Okay and can I see the request that creates the Payment Method you are retrieving in that screenshot?

steady pollen
#

req_imwPLD6kHadLYl

#

I think it's that one

stone atlas
steady pollen
#

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?

stone atlas
#

Okay but you aren't confirming the PI, you aren't using manual capture either

steady pollen
#

I am following this guide

stone atlas
#

Hmmm... I"m going to need to rebuild my Android terminal integration. When I got started you couldn't create Payment Intents client side 🤔

steady pollen
#

I am creating the Payment Intent on the server side

stone atlas
#

How are you attaching the card? What functions does your integration call?

#

Is it just collectPaymentMethdo() and processPayment()?

steady pollen
#

Terminal.getInstance().collectPaymentMethod() then Terminal.getInstance().processPayment()

tribal oxideBOT
steady pollen
#

I am doing this

teal glen
#

👋 taking over here

steady pollen
#

Hi @teal glen

teal glen
#

Is that what you were looking for?

steady pollen
#

No.

#

What's missing is the customer in the payment method object

teal glen
#

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

steady pollen
#

thank you, sir

teal glen
#

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

steady pollen
#

Interesting

#

Sigh... why, oh why 2 payment methods?

teal glen
#

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

steady pollen
#

Yeah... but why not update 9G instead of creating a new one?

#

Nevermind

#

I am just tired