Streamline payment processing for intangible goods with auto-capture by setting capture to NOW, ensuring instant transactions and real-time tracking via webhooks.
In the request to the Payment Authorize API, setting the capture
parameter to NOW
in the request_payment_transaction
object will automatically capture the transaction upon creation, making it ideal for intangible goods where immediate provisioning is expected.
Sample Request
POST /accounts/{partner_account_id}/payment/authorize
Parameters | Value |
---|---|
Klarna-Interoperability-Token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX.... |
{
"currency": "USD",
"request_payment_transaction": {
"amount": 11800,
"payment_transaction_reference": "acquiring-partner-transaction-reference-1234"
"capture": "NOW"
}
}
The payment_capture_id
will be returned in the response and should be stored for future reference.
Sample Response
{
"payment_transaction_response": {
"result": "APPROVED",
"payment_transaction": {
"payment_transaction_id": "krn:payment:eu1:transaction:6debe89e-98c0-[...]",
"payment_transaction_reference": "acquiring-partner-transaction-reference-1234",
"amount": 11800,
"currency": "USD",
"payment_funding": {...},
"payment_pricing": {...},
Every successful payment capture operation will trigger a payment transaction captured webhook to which you subscribe to.
Event name | When |
---|---|
payment.transaction.captured | To track successful payment capture, whether autocapture or manual, ensuring proper record-keeping. |