Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paynow-gg/typescript-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The PayNow SDK supports two distinct authentication methods, each designed for different use cases:- Customer Tokens: For storefront operations (browsing products, creating orders)
- API Keys: For management operations (creating products, managing orders)
Authentication Methods
- Customer Token
- API Key
Customer tokens are used with the Storefront Client to authenticate end-users browsing your store or making purchases.The customer token is prefixed with
How it works
When you provide a customer token, the SDK automatically sets the appropriate authentication header:Customer and sent in the Authorization header with every request.Customer tokens are optional for the Storefront Client. You can browse public store information without authentication.
Store ID Header
Both client types automatically include your store ID in request headers:Authentication Flow
Here’s how authentication headers are constructed internally:Custom Headers
You can provide additional headers or override defaults using theoptions parameter:
Custom headers are merged with the default headers. The SDK automatically sets
Content-Type: application/json and Accept: application/json for all requests.Base URL
All clients connect to the PayNow API at:Next Steps
Client Architecture
Learn how the SDK organizes operations and methods
Error Handling
Understand how to handle API errors gracefully