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.

ActionEndpointDescription
Authorize/core/v1/authorizationsAuthorizes an amount.
Charge/core/v1/chargesCharges an amount.
Refund/core/v1/refunds/bypaymentbydigitalpaymentserviceRefunds a charge (supports partial refunds).
Cancel/core/v1/authorizations/cancelCancels a transaction before capture.
Delete/core/v1/cards/deleteDeletes 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.

ParametersValues
AmountInRefundCurrencyAmount to be refunded. Partial refund is supported.
RefundCurrencyCurrency code (ISO 4217). Must match the original transaction.
PaymentByDigitalPaymentServiceUnique identifier (token) provided by SAP DPA.
For example: ILZSGWLACA
ReferenceDocumentIdentifier provided by the consumer application.
For example: 4865448632

For comprehensive details about this endpoint, refer to the SAP API reference.