Learn how to add and manage Square gift card payments with an existing Web Payments SDK integration, Gift Cards API, Orders API, and Payments API for your application.
This topic assumes that you're familiar with these APIs and the Web Payments SDK.
This walkthrough covers the following tasks:
- Using the Orders API to create an order and to complete the order.
- Using the Payments API to create the
Payment
objects and process gift card payments with the payment token.
The following sections cover an end-to-end payment processing flow for a partial payment. You process a $30 payment using a gift card worth $5 and complete the remaining balance of $25 using a credit card.
Before starting, make sure that you've created the following:
- A payment form that you created with the Web Payments SDK that accepts gift card payments.
- An activated gift card worth $5 USD, created with the Gift Cards API.