Currently, there is no documentation for testing the ‘Retrieve gift card from nonce’ (POST /v2/gift-cards/from-nonce) endpoint in a sandbox account.
How can querying a gift card from the Web Payments SDK be tested in a sandbox account? It seems that the Web Payments SDK sandbox script only accepts the test card number, 7783 3200 0000 0000, and returns a random GAN and card nonce. Forwarding this nonce to the the ‘Retrieve gift card from nonce’ endpoint will result in a 404, as the made up GAN does not exist in the sandbox account.
How can this API transaction be tested in development without a production Square account?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Sell a Gift Card
Square Sandbox
Retrieve Gift Cards and Track Activity
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
As stated in the question, this documentation provides no clear solution.
At this time the ability to test RetrieveGiftCardFromNonce
isn’t currently available in sandbox. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.
1 Like
Thanks Bryan,
From feedback on our side, using the secure Web Payments SDK for all customer card inputs is a much more consistent, reliable customer experience. But, needing to do proof-of-concept test in production really limits feature development.
We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.