Open a hosted card session
POST/api/v1/payment/card/initSession
Creates a hosted session on the card gateway. Called from the payer's browser or app; no credential. The reference is required and must be a collection that can still be paid: a missing, unknown, deleted, cancelled, already paid or payout reference answers 400 and opens no session. The session is created on the project's own gateway account and on the right gateway (test for a test-mode project, live for a live one).
Request
Responses
- 200
- 400
- 500
Session created
A payment reference is required, Payment not found, Only collections can be paid by card, This payment request was cancelled, or This payment has already been paid
The gateway could not create a session