Online Checkout Link - can I pass it variables, and can it return to a dynamic link?

I have a Square account and created my first Online Checkout Link for a subscription product. On my webpage, I can link to this Online Checkout link, however, is it possible for me to interface with the online checkout link?

 

For example, on my webpage, the user has to be signed in for the payment link to appear. Can I pass the username to the online checkout link? Once the user has paid and checked out, can the return page include a variable such as http://www.mydomain.com/squaresuccessfulpayment.php?username=$Username ?

 

Or do I need to use the full access API for this sort of customization? I'm trying to do this as quickly and simply as possible since I only have one product to sell and don't want to invest a lot of time into programming a full cart with Square's API.

 

Thank you.

2,025 Views
Message 1 of 6
Report
5 REPLIES 5
Alumni

Hello @rainkid 

And WELCOME to our Seller Community, it's always exciting to see new faces. 

 

The checkout page and landing page after successful checkout cannot be edited for security reasons. 

Now, depending on the type of checkout link you create, you can or cannot add a link to redirect to after a successful checkout. 

The Collect a payment and Accept a donation checkout link have advanced settings that allow you to redirect to a website after checkout. If you are selling an item or event/class you won't be able to add a redirect link, unfortunately. 

 

There is an active feature request for this feature, I would suggest commenting on that thread to add your voice to the request. 

 

Using our API, you would be able to have Square redirect your customers to a page of your choosing after a successful checkout, but the checkout page itself is not customizable. 

 

I hope this helps! 

 

Thank you

 

 

 

 

 

Frances
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
1,981 Views
Message 2 of 6
Report

Thank you for the information.

Does an order that goes through the Online Checkout link trigger the payment/order webhooks?

What is the purpose of the Custom Fields in the Online Checkout page? That is, can I pass a variable to it, or can I extract it's contents post-order?

1,948 Views
Message 3 of 6
Report
Square Community Moderator

Hello there @rainkid, I am stepping in for @frances_a. The purpose is customer field is to collect any needed information from your customers, so you can make that anything you want.

 

I apologize I don't fully understand your ask when you state, does an order that goes through the Online Checkout link trigger the payment/order webhooks? I’m happy to help, but I’m not sure that I fully understand your question. Whenever you have a moment, please reply to this thread with a little more information describing your technical issue or question. Feel free to reach out to our Square Online Team with any questions you have as well. 

 

 

MayaP
Square Community Moderator
Sign in and click Mark as Best Answer if my reply answers your question
1,908 Views
Message 4 of 6
Report

Hello MayaP,

 

I'm referring to the Square developer webhook subscriptions:

https://developer.squareup.com/docs/webhooks/v2webhook-events-tech-ref

 

Do webhooks only work with orders made through API event calls, or are they triggered regardless of how an event is triggered?

 

I guess my situation is - I want to use Square's Online Checkout link for its simplicity, but I want to be able to track my user through the checkout process. Is this possible, or must I use the API for user and order tracking? Specifically, I sell a subscription service. User has to be logged in to my website. They then click the Online Checkout link and go through the payment process. Square can then link user back to a static page on my website. However, how can my site know that this user has completed the checkout process? I can absolutely do this using the API and also using webhooks, but I'm curious if this can be done using just the Online Checkout link functionality.

1,905 Views
Message 5 of 6
Report
Alumni

Hello, @rainkid. Jumping in for @MayaP. Thank you for sharing more details; your input has been valuable. After looking into this closer with our Square Online Specialist, we can confirm that what you're attempting to do is currently not available for Square Online. Please continue using the API links.

 

We appreciate your understanding. Let us know if you have any other questions. 

 

Have a great day!

 
Sayra
Community Moderator, Square // Moderadora de la Comunidad, Square
Sign in and click Mark as Best Answer if my reply answers your question.
Inicie seción y haga clic en Marcar como "Mejor Respuesta" si mi respuesta contesta su pregunta.
1,851 Views
Message 6 of 6
Report