#Cryogenic
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you elaborate on what you mean when you say you want no Stripe frontend? Are you saying you do not want to use our Checkout Sessions or our Payment Element, but that you plan to have your own fields for collecting payment method details?
Hi Toby,
So yeah, I have my own webshop were i collect all the user details. Email, first name etc. After that they choose an paymentmethod on my website.
This can be
ideal, creditcard, paypal, bancontact.
When they press order products on my site I want to:
- Create an payment at stripe
- Redirect the user to the payment page.
So for example, for iDeal i want pass the bankname to stripe so that the customer will be redirected to their bank instead of an iDeal page of stripe. That is this API method: https://stripe.com/docs/api/payment_methods/object#payment_method_object-ideal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
My question is now, how can i do this with the stripe .net SDK, do i need an checkout session or an payment intent?
A Checkout Session will redirect to our hosted page that collects payment method details, so that doesn't sound like what you are after.
I also want to make sure that you're aware that if you collect card details directly on your site, this increases your compliance burden as you'll need to ensure your site and systems are PCI compliant.
https://stripe.com/guides/pci-compliance
https://stripe.com/docs/security/guide#validating-pci-compliance
Yeah, for creditcards I still want to redirect to stripe
So,
iDeal: Customer chooses iDeal + their bank name -> I create an payment @ stripe -> redirect them to the correct payment url
Creditcard: Customer chooses creditcard -> I create an payment @ stripe -> redirect them to the creditcard checkout of stripe
To have that, you will essentially need to build multiple integrations for your single page.
I'd recommend taking a look at our Payment Element, it allows you to accept a variety of payment method types and doesn't increase PCI compliance burden because the element is hosted on a Stripe site (embedded into your page).
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Okay, so lets start with iDeal.
How can i create an stripe payment for my user including their bank (https://stripe.com/docs/api/payment_methods/object#payment_method_object-ideal)?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Have you tried using our guide for accepting an iDEAL payment, is there something in there that is giving you trouble?
https://stripe.com/docs/payments/ideal/accept-a-payment?platform=web&ui=element
Which part of that flow do you not like that you'd wish to approach differently?
Maybe this example could work, but do you know how i can add additional data like this: https://discordapp.com/channels/841573134531821608/1086282836555858040/1086287607794765824
Sorry, I'm going to need more context to understand what you're referring to. You linked to the Checkout Session flow of the doc that I provided a link to, rather than the embedded approach that I had linked to.
When using Checkout Sessions, you don't provide payment method details, the hosted experience of the Checkout Session collects those details.
I'm not sure, there is an endpoint for directly creating Payment Methods, but the fields available in the ideal hash are very limited so I'm not sure how you'd map the collected information to that:
https://stripe.com/docs/api/payment_methods/create#create_payment_method-ideal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes exactly that!
So could you please explain me how I would use that?
Like what is the correct flow
Create an session? Create an paymentintent?
Payment intent
Do you have an example were i can provide an paymentmethod to an intent?
Will you have the ID of the Payment Method when you create the Payment Intent, or will you need to provide the Payment Method ID to the Payment Intent after the Payment Intent has been created?
I'm planning to create the payment with the code above
So i can first create the payment method and then the intent?
With what code?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What you just sent
So now i have an payment method
How can i create an payment with this method?
You provide that ID in the payment_method field when creating the Payment Intent
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Maybe, I've never personally worked with ideal in this fashion, so I'm not exactly sure. What behavior do you see when you confirm that Payment Intent?
That i get an URL of the iDeal bank of the user
Were i can redirect my user to
To complete the payment
Sweet, if that is what you're seeing then sounds like you're all set?
Debugging atm
Sec
I'm getting an result
And inside NextAction -> Redirecturl -> Url
I see the url
So it seems that it works ๐
๐ sweet