post
https://enbduat-acquiring-apigw.creditpluspinelabs.com/checkout/apis/v2/transactions/xpay
This API is used to create transactions with PG where payment is made through wallets like Apple Pay, Samsung Pay, etc. This API is applicable when the preferred mode of payment is Apple Pay or Samsung Pay. No other payment methods are supported. Like Create Transaction API, accepted transaction types are AUTH and PURCHASE. Refer to parameter transactionType in the request body. The encrypted DPAN value must be provided in encryptedPayload parameter for the transaction to be successful.
Transaction Idempotency
If appUtr is present in the API request, then the refund transaction will be made idempotent. If another refund transaction is requested with the duplicate appUtr, then API will reject the refund transaction.
HTTP Status and Response Status Matrix
| HTTP Status | Response Status | Response Message |
|---|---|---|
| 200 | AUTHORIZED, CAPTURED | Success |
| 200 | AUTHORIZATION_DECLINED | Transaction has been declined |
| 400 | VALIDATION_ERROR | When validation fails for request body, field specific validation errors will be returned. |
| 400 | INVALID_REQUEST | Notes provided is not a valid JSON |
| 400 | ERROR_FROM_PG | This will be populated by processor. |
| 500 | ERROR_FROM_PG | Error in Processing Gateway Response |
| 500 | INTERNAL_PROCESSING_ERROR | When there is an error/exception at Checkout which is not handled gracefully or un-recoverable. Specific error messages or generic error messages will be returned on a basis of scenario. |
| 500 | INTERNAL_PROCESSING_ERROR | Gateway account not found |
| 502 | ERROR_CONNECTING_PG | Gateway connectivity unavailable |
| 503 | ERROR_CONNECTING_PG | Gateway connectivity unavailable |