#Aboo
1 messages · Page 1 of 1 (latest)
Hi there, I'm afraid that Stripe checkout page doesn't have an option for user to add additional text input field.
Can you share with me the page URL where you've seen it?
theyve switched to paypal now
but it used to be powered by stripe
and that "tradingview.com username* input field was there
Ok, I guess they were using PaymentElement, not Checkout
can you explain what that means please
You can embed the Stripe Payment Element into your page, you can find more details here https://stripe.com/docs/payments/payment-element
what is the benefit of using this rather than lets say a payment link?
sorry for these questions im just trying to understand
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).
Ok I see. So this option would then allow me to include a text input field?
That's your page, which is under your full control.
Again, that's your page so you can decide where the value should be sent to,
Ok I see where do i choose that?
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.
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
I see, I think you can use Checkout Session API. So here's how it works
- In your own page, create a text field for your customer to enter the email address
- 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)
- 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
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?
It's possible. You can specify a redirect URL for after completion (https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-type)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok perfect