Request
| Property | Type | Required | Description |
|---|---|---|---|
currency | string | Required Calculate Surcharge requests only | The currency being used for the transaction. |
amount | string | Required | The amount of the transaction prior to surcharge. |
paymentMethod | string | Optional | The payment method of the transaction. If payment information such as creditCard is provided in the request, the payment method will be inferred automatically. |
wallet | container | Required Only if using Apple Pay or Google Pay | Refer to wallet. |
pfToken | string | Required for Calculate Surcharge requests only if using Hosted Payment Fields | A Hosted Payment Fields token. |
vaultedShopperId | integer | Optional Calculate Surcharge requests only | A Vaulted Shopper ID. |
creditCard | container | Required for Calculate Surcharge requests only if not using Hosted Payment Fields or vaulted shopper | Refer to creditCard. |
surchargeInfo | container | Required Calculate Prorated Surcharge requests only | Refer to surchargeInfo. |
Response
| Property | Type | Description |
|---|---|---|
currency | string | The currency used for the surcharge calculation. |
amount | string | The calculated amount of the surcharge. |
paymentMethod | string | The payment method of the transaction. Calculate Surcharge response only |
payerDetails | container | Refer to payerInfo. Calculate Surcharge response only |
creditCard | container | Refer to creditCard. |
surchargeInfo | container | Refer to surchargeInfo. |
