#DuyKhanh
1 messages · Page 1 of 1 (latest)
hi! it depends a little, what would you do with the PaymentMethod once you have it? would you be charging it or saving it for a future charge?
okk I will give you my code
my purpose is only get paymentMethod.id from createPaymentMethod function
maybe saving for a future charge
can I remove the currency and amount? When I remove them , it throw error
well you could use mode:"setup" instead of mode:"payment" if the use case is just accepting the card in order to save it. In that mode, amount isn't needed.