Skip to main content
This guide walks you through a full payment flow with the API Store: create a payment link, send your customer to checkout, and confirm the payment.

Prerequisites

  • A PapelShip account with at least one store
  • An API key (psa_...), its numeric API Key ID, and your 12-character Store Hash ID
You can find all three values in the PapelShip dashboard under your store’s API settings.
1

Create a payment link

Send the order amount to the payment links endpoint. Add an Idempotency-Key header so retries never create duplicate invoices.
2

Redirect your customer

The response contains a checkout_url. Send your customer there to pay by card, Papara, bank transfer, or crypto.
Response
Store invoice.id with your order. You need it to check the payment.
3

Confirm the payment

When the customer returns to your redirect_url, verify the payment on your server. Never trust the redirect alone.
Fulfill the order only when payment.is_paid is true.
Keep your API key on your server. Never ship it in browser code, mobile apps, or desktop clients.

Next steps

Crypto invoices

Show your own checkout with a dedicated deposit address and QR code.

API Store reference

Explore every endpoint, parameter, and response.