Payment Processes
After registering a shopper, you can process their payments through SAP DPA.
If you already created a transaction in your consumer application and need to update it in SAP (such as to perform a refund), refer to Tokenized Transactions first.
Payment Process Endpoints
These SAP endpoints handle standard payment processes such as charges, auth, refunds, cancellations, and delete. For complete specifications, refer to the SAP API Reference.
| Action | Endpoint | Description |
|---|---|---|
| Authorize | /core/v1/authorizations | Authorizes an amount. |
| Charge | /core/v1/charges | Charges an amount. |
| Refund | /core/v1/refunds/bypaymentbydigitalpaymentservice | Refunds a charge (supports partial refunds). |
| Cancel | /core/v1/authorizations/cancel | Cancels a transaction before capture. |
| Delete | /core/v1/cards/delete | Deletes a stored card from SAP DPA. |
Note
As a response to a charge, you receive a Digital Payment Add-on Payment Token (
PaymentByDigitalPaymentService). This token can be used for refunds if needed.
Refund
When refunding a payment, you must provide a Refunds object with at least the PaymentByDigitalPaymentService token. If no amount and currency are included, then the original payment amount will be refunded.
| Parameters | Values |
|---|---|
AmountInRefundCurrency | Amount to be refunded. Partial refund is supported. |
RefundCurrency | Currency code (ISO 4217). Must match the original transaction. |
PaymentByDigitalPaymentService | Unique identifier (token) provided by SAP DPA. For example: ILZSGWLACA |
ReferenceDocument | Identifier provided by the consumer application. For example: 4865448632 |
For comprehensive details about this endpoint, refer to the SAP API reference.
Updated 21 days ago
