Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1325

Testing Retrieve Gift Card From Nonce Endpoint

$
0
0

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?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1325

Trending Articles