To get up and running in only a few minutes, follow these steps:
1
Obtain API Keys
To get set up with API access for Halliday Payments, please reach out to [email protected].
2
Integrate
First, install the Halliday Payments SDK in the root folder of a web project.
Copy
Ask AI
npm install @halliday-sdk/payments
Next, integrate Halliday Payments into an existing application with a few lines of code. This example is in a React.js project.
copy
Copy
Ask AI
import { openHallidayPayments } from "@halliday-sdk/payments";// openHalliday will open a popup that begins the payments flow.// Customize the button to match a DApp's existing styles.<button onClick={() => { openHallidayPayments({ apiKey: HALLIDAY_PUBLIC_API_KEY, // USDC on Base outputs: ["base:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"], sandbox: false, }); }}> Pay with Halliday</button>
Run the DApp page and try onramping or swapping tokens with the newly implemented Halliday Payments Payments Widget.
Assistant
Responses are generated using AI and may contain mistakes.