CreatePaymentLink Stopped Working

Hi,

 

Has something changed on the CreatePaymentLink API?


We have used the CreatePaymentLink API for a few years now and it's worked fine, however we have just today found that all links have at some time in the last 24 hours or so broken across every part of our site we use this, and even on another site using a different account so this is definitely not account specific.

 

Basically, the address returned for checkout_page_url used to be the full URL, including the https://squareup.com/ part, however it's now returning a relative URL of just the /v2/checkout part instead. Obviously when we redirect a user to that address, it fails as it's trying to redirect to /v2/ on our site instead. It also looks like the encoding of the URL seems to have changed as the ampersand is being sent to us as \u0026 and this never used to be the case.

 

I've managed to change the URL and the encoding so we have working links, but my concern is that this changes back and that will break all out links again.


Am I missing something obvious here?

650 Views
Message 1 of 3
Report
2 REPLIES 2

And as I thought, it's now reverted back to the previous way and broke my sites again!!

643 Views
Message 2 of 3
Report
Square

Hi @Lothian - thanks for flagging this. 

 

I just want to confirm that this is the Checkout APICreate payment link you are using? 

 

If so this query will need to be directed to our Developer Forum instead of the Seller Community. We wouldn't have any insights into API changes here, unfortunately. 

 

 

Breffni
Community Moderator, Ireland, Square
Sign in and click Mark as Best Answer if my reply answers your question

After a wonderful three years supporting the Seller Community, I've moved teams!
Check out article "A Contact Guide to the Seller Community" to reach out to current Seller Community Moderators.
Thank you for all the memories and connections—here’s to new adventures! 
641 Views
Message 3 of 3
Report