#jalen-android-sdk
1 messages · Page 1 of 1 (latest)
When the user purchases value-added services in the Android App, he enters the credit card number and expiration time. The stripe sdk generates a token. After the order is generated, can the card number be modified?
@prisma gust
I'm not sure I follow what you're trying to do. Do you want to save new card details for the customer?
or change the card info use for a given payment?
change the card info use for a given payment
You would collect a new payment method and set that on the payment intent before confirming it, then
Let me give you an example. Value-added services are paid on a monthly basis. When users use value-added services to the second month, can they still modify the credit card number used for payment?
I need your help, thank you
You as the integrator are always in control of what payment method is used for a payment, whether one off or subscription
You can save new payment details to use with a payment intent, you can replace the payment method used for a subscription etc
Is that what you mean, replacing the card used for a subscription?
You don't "modify the card number" -- you save a new card (new payment method) and provide the new payment method for the subscription
eg: collect new card details: https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet#android-collect-payment-details
this would get you a new payment method ID
And if you want to then use that for the next subscription payment you'd update the subscription:
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you very much