#ganeshgawali_04977

1 messages ยท Page 1 of 1 (latest)

eternal cradleBOT
#

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.

polar ether
#

Can you tell me what you want to achieve here?

#

Is it about limiting payment method options to card only?

lilac jungle
#

I want it to accept all cards

#

master, visa

#

etc

polar ether
#

Ok, you can include ['card'] in payment_method_types when creating the payment_intent

lilac jungle
#

okay great

#

one more thing

#

setReturnUrl() we do not want to set any return url for this

#

is it possible to do that

polar ether
#

return_url is a optional

lilac jungle
#

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

polar ether
#

Send me the URL to the doc that you are following

lilac jungle
#

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

polar ether
#

Send me the URL to the doc that you are following

eternal cradleBOT
lilac jungle
#

here is the link which I am referring to

candid shale
candid shale
#

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.

lilac jungle
#

okay

#

and for setReturnUrl?

lilac jungle
candid shale
lilac jungle
#

we do not want any return url

#

how can we achieve it

candid shale
#

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.