#Reyansh Sharma

1 messages · Page 1 of 1 (latest)

proud juniperBOT
raven oar
true birch
#

Yes Followed those steps (1,2 & 3)

#

But not sure how to call confirmSetupIntent through SDK.

raven oar
#

Are you using the Server-driven approach ?

true birch
#

Only to create customer & SetupIntent.

#

Afterward using collectSetupIntentPaymentMethod from terminalJS

raven oar
raven oar
true birch
#

We are using terminalJS so card specific information will only be available after customers swipe the card. So was planning to use collectSetupIntentPaymentMethod to collect the pyamtnmethod & then confirm it using confirmSetupIntent

#

Let me check If I can get the READER_ID value from the device and follow the server side integration for step 3 as well.

raven oar
#

Between, the confirmSetupIntent is available only for the mobile SDK

true birch
#

So after collectSetupIntentPaymentMethod execution through TerminalJS have to send something from the portal to the backend to handle the response & confirmation so the payment method will be attached to the customer.

bronze matrix
#

Which Terminal SDK/integration are you using?

true birch
#

Version 0.11.2 at the moment. npm package can be found at https://www.npmjs.com/package/@stripe/terminal-js

bronze matrix
#

Are you calling confirmSetupIntent? That will attach the card to the Customer assuming you passed the customer parameter when you created the Setup Intent

true birch
#

Did you mean server side call?

bronze matrix
true birch
#

Yes I created the customer first then setupIntent using the customerID

bronze matrix
#

confirmSetupIntent will attach the card to the customer

true birch
#

Yes returned the ClientSecret from SetupIntent to frontend & called collectSetupIntentPaymentMethod

true birch
bronze matrix