#ganeshgawali_04977
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.
- ganeshgawali_04977, 3 days ago, 8 messages
- ganeshgawali_04977, 5 days ago, 6 messages
- ganeshgawali_04977, 6 days ago, 2 messages
Can you tell me what you want to achieve here?
Is it about limiting payment method options to card only?
Ok, you can include ['card'] in payment_method_types when creating the payment_intent
okay great
one more thing
setReturnUrl() we do not want to set any return url for this
is it possible to do that
return_url is a optional
okay
thank you so much for your kind help
it is not working
and it seems to me that AllowRedirects is missing from AutomaticPaymentMethods too
any valuable suggetion
Send me the URL to the doc that you are following
okay
com.stripe.exception.InvalidRequestException: No such PaymentMethod: 'card'; It's possible this PaymentMethod exists on one of your connected accounts, in which case you should retry this request on that connected account. Learn more at https://stripe.com/docs/connect/authentication; code: resource_missing; request-id: req_mob7KhV5X2NdoJ
for setPaymentMethod "card" is not working
Send me the URL to the doc that you are following
here is the link which I am referring to
that means you're using an old version of stripe-java.
where does it tell you in that doc to set setPaymentMethod("card") ๐
that doesn't make any sense and isn't what you'd do.
setPaymentMethod is used to set the ID pm_xxx of a specific payment method that you're intending to charge. "card" is not the ID of a PaymentMethod object.
I am sorry that doc was for setReturnUrl() not for setPaymentMethod("card")
what about it, what's your exact question?
without a return URL you can't accept many payment methods and can mostly only accept card payments, so I'd recommend using a return URL.