curl --request POST \
--url https://api.sandbox.primer.io/payment-status \
--header 'Content-Type: application/json' \
--header 'X-Signature-Primary: <x-signature-primary>' \
--header 'X-Signature-Secondary: <x-signature-secondary>' \
--data '{
"eventType": "<string>",
"date": "2023-11-07T05:31:56Z",
"notificationConfig": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
},
"version": "2.2",
"payment": {
"id": "<string>",
"date": "2023-11-07T05:31:56Z",
"status": "PENDING",
"orderId": "<string>",
"currencyCode": "<string>",
"amount": 1,
"customerId": "<string>",
"metadata": {},
"processorData": {},
"customer": {
"emailAddress": "jsmith@example.com",
"mobileNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"billingAddress": {
"firstName": "<string>",
"lastName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"countryCode": "AW",
"postalCode": "<string>"
},
"shippingAddress": {
"firstName": "<string>",
"lastName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"countryCode": "AW",
"postalCode": "<string>"
},
"taxId": "<string>",
"nationalDocumentId": "<string>"
},
"paymentMethod": {
"descriptor": "<string>",
"paymentType": "FIRST_PAYMENT",
"paymentMethodToken": "<string>",
"isVaulted": true,
"analyticsId": "<string>",
"paymentMethodType": "<string>",
"paymentMethodData": {
"first6Digits": "<string>",
"last4Digits": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"cardholderName": "<string>",
"network": "<string>",
"isNetworkTokenized": false,
"binData": {
"network": "AMEX",
"issuerCountryCode": "AW",
"issuerName": "<string>",
"issuerCurrencyCode": "AED",
"regionalRestriction": "DOMESTIC_USE_ONLY",
"accountNumberType": "PRIMARY_ACCOUNT_NUMBER",
"accountFundingType": "CREDIT",
"prepaidReloadableIndicator": "RELOADABLE",
"productUsageType": "CONSUMER",
"productCode": "<string>",
"productName": "<string>"
}
},
"threeDSecureAuthentication": {
"responseCode": "NOT_PERFORMED",
"reasonCode": "GATEWAY_UNAVAILABLE",
"reasonText": "<string>",
"protocolVersion": "<string>",
"challengeIssued": true
}
},
"processor": {
"name": "<string>",
"processorMerchantId": "<string>",
"amountCaptured": 123,
"amountRefunded": 123
},
"statusReason": {
"type": "APPLICATION_ERROR",
"declineType": "SOFT_DECLINE",
"code": "ERROR",
"message": "<string>"
},
"transactions": [
{
"transactionType": "SALE",
"processorTransactionId": "<string>",
"processorName": "<string>",
"processorMerchantId": "<string>",
"processorStatus": "PENDING",
"processorStatusReason": {
"type": "APPLICATION_ERROR",
"declineType": "SOFT_DECLINE",
"code": "ERROR",
"message": "<string>"
},
"reason": "Item returned."
}
],
"riskData": {
"fraudChecks": {
"source": "FRAUD_PROVIDER",
"preAuthorizationResult": "THREE_DS",
"postAuthorizationResult": "ACCEPT"
},
"cvvCheck": {
"source": "PROCESSOR",
"result": "MATCHED"
},
"avsCheck": {
"source": "PROCESSOR",
"result": {
"streetAddress": "NOT_MATCHED",
"postalCode": "NOT_VERIFIED"
}
}
}
}
}'