開発者

Developers

An API built with craft.

Predictable REST resources, readable errors, idempotency and webhooks. Your first test payment takes minutes.

開
// create a payment const payment = await zw.payments.create({ amount: 14900, currency: 'nzd', methods: ['card', 'pay_by_bank'], }); // → status: 'succeeded'
開Quick start

Your first payment in a few lines.

Amounts are in cents. Test keys start with sk_test_ and live keys start with sk_live_.

import Paymark Click from '@Paymark Click/node'; const zw = new Paymark Click(process.env.PAYMARK CLICK_SECRET_KEY); const payment = await zw.payments.create({ amount: 14900, // in cents currency: 'nzd', methods: ['card', 'pay_by_bank', 'afterpay'], description: 'Order #1042', return_url: 'https://shop.example.co.nz/thanks', });
表Resources

Core API resources

EndpointDescriptionMethods
/v1/paymentsCreate and retrieve paymentsGET, POST
/v1/refundsFull and partial refundsGET, POST
/v1/customersCustomers and saved payment methodsGET, POST, PATCH
/v1/bank_consentsPay-by-bank and direct debit consentsGET, POST, PATCH
/v1/subscriptionsRecurring billingGET, POST, PATCH, DELETE
/v1/payment_linksPayment linksGET, POST
/v1/payoutsPayouts to your bank accountGET
/v1/webhooksWebhook endpointsGET, POST, DELETE
具Tooling

Everything you need to ship.

一

Sandbox

Test cards, pay-by-bank flows, direct debits and BNPL.

二

SDKs

Official libraries for Node.js, PHP, Python and Java.

三

Webhooks

HMAC-signed events with automatic retries.

四

Request logs

See every API request and response.

五

Plugins

Ready-made e-commerce plugins.

Learn more
六

Restricted keys

API keys limited to specific resources.

始Begin

Start building today.

Create a sandbox account and get your test API keys straight away.