#coder99
1 messages · Page 1 of 1 (latest)
Hello, happy to take a look. Can you show me your code where you are passing external_paysafecard?
I don't think you need to activate paysafecard in this case, it should just be a param passed to Stripe elements on the client side https://stripe.com/docs/payments/external-payment-methods?platform=web#handle-external-payment-method-selection
can i pass the paysafe card number as well ?
Ah, that is different from where our doc shows that you should pass the call
It shows setting it on the frontend
clientSecret: clientSecret,
externalPaymentMethodTypes: ['external_divido']
});```
PaymentIntents don't have a concept of external payment methods, so I believe that error is expected
is there an example in c# ?
yes, i know that.
my point is if there is any code in c# where this integration of external payments as example ? also can external payments be done with session ?
Is there a specific part of that doc that you see that involves the backend?
Reading through that doc, I only see frontend code. As far as I know, PaymentIntents and all of our server APIs do not support external payment methods
External payment methods, as far as I am aware, are a way to provide a link on your frontend of where to direct your users if they want to pay with that payment method
exactly, how can i provide the link in order to make my front end render the check out page.
but i am one step behind that
wait wait, i am getting it
i have to follow this guide, https://stripe.com/docs/payments/quickstart
setup the back end as described, setup the front end as described and then add this
elements = stripe.elements({
clientSecret: clientSecret,
externalPaymentMethodTypes: ['external_divido']
});
to the front end in order to preview the paysafe card option on my check out ? is that correct ?
currenty, we have an integration via sessions and customer selectes a predefined product and then gets a link to pay for that spesific product and its price, in order to create subscription. the payment is happening via sessions as i mentioned and i get webhook event when it's finished
that's is why i was asking about a backend implementation and a possible session implementation
is there any way of doing it this way ?
i use this class btw, SessionCreateOptions()
Not with external payment methods, those payment methods don't update the Stripe subscription object, so we don't have anything to send you a webhook event about.
Good question, looking in to it. I don't think Checkout supports external payment methods but am double checking
it's okay i dont need a webhook
i only need to be able to send a paysafe number and be sure that that payment passed through