#Cryogenic

1 messages ยท Page 1 of 1 (latest)

spring moatBOT
fringe matrix
#

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?

next sonnet
#

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.
#

My question is now, how can i do this with the stripe .net SDK, do i need an checkout session or an payment intent?

fringe matrix
next sonnet
#

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

fringe matrix
next sonnet
#

Okay, so lets start with iDeal.

fringe matrix
next sonnet
#

Yeah that is not an API solution

#

I want a api solution

fringe matrix
#

Which part of that flow do you not like that you'd wish to approach differently?

next sonnet
fringe matrix
#

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.

next sonnet
#

Okay, and if i want to collect these myself and provide them

#

Is that possible?

fringe matrix
#

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

next sonnet
#

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?

fringe matrix
#

Payment intent

next sonnet
#

Do you have an example were i can provide an paymentmethod to an intent?

fringe matrix
#

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?

next sonnet
#

I'm planning to create the payment with the code above

#

So i can first create the payment method and then the intent?

fringe matrix
#

With what code?

spring moatBOT
next sonnet
#

What you just sent

#

So now i have an payment method

#

How can i create an payment with this method?

fringe matrix
next sonnet
#

Okay sick

#

And the intent gives me an url were i can redirect the user to?

fringe matrix
#

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?

next sonnet
#

That i get an URL of the iDeal bank of the user

#

Were i can redirect my user to

#

To complete the payment

fringe matrix
#

Sweet, if that is what you're seeing then sounds like you're all set?

next sonnet
#

Debugging atm

#

Sec

#

I'm getting an result

#

And inside NextAction -> Redirecturl -> Url

#

I see the url

#

So it seems that it works ๐Ÿ˜‰

fringe matrix
#

๐Ÿ‘ sweet