Getting started with Shop Pay Wallet

This section describes how to authorize a client app with Shop Pay Wallet and make calls to the Shop Pay Wallet API.

Authorize your app with Shop Pay Wallet

Complete the following to request authorization from a User and obtain an access_token that you can use to make requests to the Shop Pay Wallet API. For more information on the authorization flow, see the Authorization guide.

  1. Request authorization from the user using the request authorization endpoint.

  2. Exchange the authorization_code returned in step #1 for an access_token by sending a request to the request access token endpoint. Provide the authorization_code in the request body.

  3. Securely store the access_token returned from the request.

  4. Use the access_token to make a request to the Shop Pay Wallet API.

Get a user's wallet

Complete the following to request a User's Wallet information:

  1. If the User hasn't authorized your application yet, then first request authorization.

  2. Make a request to the fetch wallet, passing the access_token in the request header.

Confirm an order

Complete the following to confirm an Order:

  1. If the User hasn't authorized your application yet, then first request authorization.

  2. Make a POST request to the confirm Order endpoint, passing the access_token in the request header and the order_id and tokenization_type in the request body.

  3. Decrypt the response payload.

Update an order

Complete the following to update an Order:

  1. Make sure you have first confirmed an Order

  2. Make a PUT request to the update Order endpoint, passing the updated data for the Order.

  3. Repeat step #2 as the Order requires updates.