#mayank.kumar.
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mayank.kumar., 2 hours ago, 68 messages
👋 happy to help
Hi Tarzan
I am building a terminal app and have requirement to take recurring payment
Based on this link I created a POC but I am not getting payment method by setting up payment intent
Can you please help
@warm vapor
Can you please help on this
Sure
have you tried this
Yes
I am not getting payment method in this while setting up the collectSetupIntentPaymentMethod
See Payment method is null
because the setup intent hasn't been confirmed
as you can see the status is requires_payment_method
Based on document I used this :
Cancelable cancelable = Terminal.getInstance().collectSetupIntentPaymentMethod(setupIntent, true,
new MyReaderListener(),
new SetupIntentCallback() {
@Override
public void onSuccess(SetupIntent setupIntent) {
// Placeholder for confirming setupIntent
}
@Override
public void onFailure(TerminalException exception) {
// Placeholder for handling exception
}
});
But it is not working
I got the SetupIntent from this
Use confirmSetupIntent to complete the setup.
you need to confirm the setupIntent inside the onSuccess callback