- Request structure and mandatory fields
- Authentication handling
- Core payment flows (create, capture, refund, void, query)
- Basic success and failure scenarios
- Asynchronous responses
paymentId: reference it as a path parameter in subsequent operations (capture, refund, void or query).
Sandbox setup
- Base URL and credentials: use
https://api.sandbox.paymend.comwith your sandbox token; see Authentication and API environments, which also cover dashboard access. - Store: populate
source.storeIdwithstore_sandboxon every sandbox request.
refundAmount and always refunds the full amount, so partial refunds can only be tested in production.
Asynchronous payments
Supporting asynchronous responses is required for every Paymend integration (see Recover payments), so test yourPENDING handling, and your webhook handling, in the sandbox before going live.
In sandbox, PENDING payments will resolve automatically. These will transition to a terminal state for payment creation - AUTHORIZED, CAPTURED or FAILED - after 30 minutes. This transition triggers the payment status update webhook.
Webhooks are set up in sandbox on request. Ask your Paymend sales representative to configure them for your sandbox endpoint.
Test cards
When creating payments in the sandbox, specific test card numbers determine simulated outcomes.CARD payment method type
The table below shows which card number and brand values can be passed in the paymentMethod object during payment creation to receive different status and failure object values in the response.
*Whether you receive
AUTHORIZED or CAPTURED will depend on the value passed in the captureNow field.
Any 3-4 digit value is accepted for card.cvv.
ENCRYPTED_CARD payment method type
The table below shows which encrypted card value and brand values can be passed in the paymentMethod object during payment creation to receive different status and failure object values in the response.
*Whether you receive
AUTHORIZED or CAPTURED will depend on the value passed in the captureNow field.
Request examples
You can find example requests for payment creation and payment management by following the links below:Next Steps
Once your integration is working smoothly in sandbox:- Confirm your integration meets the integration checklist, including
PENDINGand webhook handling. - Request production credentials from Paymend.
- Update your base URL to the production endpoint:
https://api.prod.paymend.com. - Perform live transaction testing as needed, including partial refunds.