#Aboo

1 messages · Page 1 of 1 (latest)

fathom crowBOT
lost root
#

Hi there, I'm afraid that Stripe checkout page doesn't have an option for user to add additional text input field.

fiery sapphire
#

Impossible to add a text input field?

#

ive seen it before

lost root
#

Can you share with me the page URL where you've seen it?

fiery sapphire
#

theyve switched to paypal now

#

but it used to be powered by stripe

lost root
#

Ok, I guess they were using PaymentElement, not Checkout

fiery sapphire
#

can you explain what that means please

lost root
fiery sapphire
#

what is the benefit of using this rather than lets say a payment link?

#

sorry for these questions im just trying to understand

lost root
#

PaymentElement is for user who requires more customization. Unlike paymentlink or checkout page where a customer is redirected to a Stripe-hosted page to complete the payment. With PaymentElement, your customer can complete the payment flow right inside your page without being redirecting to another page (except for some payment methods that require redirection to the payment service provider).

fiery sapphire
#

Ok I see. So this option would then allow me to include a text input field?

lost root
#

That's your page, which is under your full control.

fiery sapphire
#

But where would the text input field go when payment happens?

#

stripes database?

lost root
#

Again, that's your page so you can decide where the value should be sent to,

fiery sapphire
#

Ok I see where do i choose that?

lost root
#

It really depends on your business needs.

If you want a no-code solution, you can go with payment link and start accepting payments without writing any code. If your app requires customization, you can integrate PaymentElement.

fiery sapphire
#

Right now I have the no code payment link but this requires me to have to manually contact the customers for their "username" so I can give them access to the product

if i was able to collect usernames in a form then I could automate the process.

#

So I am asking how I can do that. And if there is an easy way for someone who doesn't have much if all experience with programming

lost root
#

I see, I think you can use Checkout Session API. So here's how it works

#
  1. In your own page, create a text field for your customer to enter the email address
  2. Based on the email address, you can either create a customer or retrieve a customerID by using the Customers API (Ideally you should have a login system, and store the customerID to your own DB)
  3. Once you have the customerID, you can pass it to the Checkout Session creation API to create a checkout session, and you can redirect your customer to the checkout session's URL to complete the payment
fiery sapphire
#

What if I do not have the user system on my site? How can I then pass on the customerID?

#

I think I found an easier solution actually. Would it be possible to just use a payment link and afterwards it automatically redirects them to a form to fill out where i get their username

#

like no buttons pressed just right after payment they are taken to the form?

lost root
fiery sapphire
#

Ok perfect