Process an online card transaction.
Use the following request to initiate a card transaction without CVC.
{ "merchant": "MERCHANT-1", "site": "SITE-1", "merchantTransactionId": "This_is_my_merchant_transaction_id", "merchantTransactionGroupId": "This_is_my_merchant_transaction_group_id", "merchantTransactionDate": "2024-01-27T08:51:02.826445+00:00", "transactionMethod": { "intent": "Authorisation", "entryType": "Ecom", "fundingType": "Card" }, "fundingData": { "card": { "primaryAccountNumber": "4111111111111111", "expiryMonth": "03", "expiryYear": "2027", "holderName": "Mr John Doe" } }, "amounts": { "transaction": 30.32, "currencyCode": "EUR" }, "shopper": { "id": "Shopper_01", "firstName": "John", "lastName": "Doe", "dateOfBirth": "1980-03-01", "email": "shopper@example.com" } }
| Parameter | Description |
|---|---|
merchantstring (≤ 20 characters) required | Your unique merchant identifier, as assigned by PXP. |
sitestring (≤ 20 characters) required | Your unique site identifier, as assigned by PXP. |
merchantTransactionIdstring (≤ 50 characters) required | A unique identifier for this transaction. |
merchantTransactionDatedate-time required | The date and time when the transaction happened, in ISO 8601 format. |
transactionMethodobject required | Details about the transaction method. |
transactionMethod.entryTypestring required | The entry type. For e-commerce transactions, this is always Ecom. |
transactionMethod.fundingTypestring required | The funding type. For card transactions, this is always Card. |
transactionMethod.intentstring required | The payment intent. Learn more about intents. Possible values:
|
amountsobject required | Details about the transaction amount. |
amounts.transactionnumber | The transaction amount. The numbers after the decimal will be zero padded if they are less than the expected currencyCode exponent. For example, GBP 1.1 = GBP 1.10, EUR 1 = EUR 1.00, or BHD 1.3 = 1.300. The transaction will be rejected if numbers after the decimal are greater than the expected currencyCode exponent (e.g., GBP 1.234), or if a decimal is supplied when the currencyCode of the exponent doesn't require it (e.g., JPY 1.0). |
amounts.currencyCodestring (1-3 characters) required | The currency code associated with the transaction, in ISO 4217 format. |
amounts.gratuitynumber | The gratuity or tip amount added by the customer to the transaction total. This field can't be used together with serviceCharge. |
amounts.serviceChargeobject | Details about the service charge applied to the transaction. This field can't be used together with gratuity. |
amounts.serviceCharge.amountnumber required | The service charge amount. |
amounts.serviceCharge.percentagenumber required | The service charge percentage. |
amounts.serviceCharge.optionalboolean required | Whether the service charge is optional. |
fundingDataobject required | Details about the payment method used for the transaction. |
fundingData.cardobject | Details about the card. |
fundingData.card.primaryAccountNumberstring (10-19 characters) | The unique number assigned to a payment card, such as a credit or debit card. This number typically contains 16 digits, structured in a specific format to indicate the card network, issuing bank, and account number. |
fundingData.card.expiryMonthstring (2 characters) | The expiry month (MM) of the card. |
fundingData.card.expiryYearstring (4 characters) | The expiry year (YYYY) of the card. |
fundingData.card.holderNamestring (≤ 100 characters) | The full name of the individual who owns the payment card. This name is printed on the physical card and is used for verifying the cardholder's identity during transactions. |
If your request is successful, you'll receive a 200 response that includes the transaction's state. You'll also receive a Transaction (Card Authorised) webhook notification.
{ "state": "Authorised", "stateData": { "code": "CRD000", "message": "Approved" }, "approvalCode": "123456", "merchantTransactionId": "This_is_my_merchant_transaction_id", "systemTransactionId": "1ed768bb-e88a-4636-91ae-67927ccbb02b", "merchantTransactionDate": "2024-01-27T08:51:02.826Z", "providerTransactionId": "1ed768bb-e88a-4636-91ae-67927ccbb02b", "fundingData": { "cardScheme": "Visa", "primaryAccountNumber": "************1111", "expiryMonth": "12", "expiryYear": "2026", "gatewayTokenId": "1ed768bb-e88a-4636-91ae-67927ccbb02b", "schemeTokenNumber": "4837261112345678", "addressVerificationServiceResult": "NoInformationAvailable", "cardVerificationCodeResult": "NoInformationAvailable", "providerResponse": { "provider": "PXPFinancial", "code": "00", "message": "Approved", "merchantId": "77772182", "terminalId": "75836665", "cardVerificationCodeResult": "A", "addressVerificationServiceResult": "D", "schemeTransactionId": "TX1234567890123456", "schemeTransactionLinkId": "TX1234567890123456", "paymentAccountReference": "V001ABCDEFGHIJKLMNOPQRSTUVWXY", "retrievalReferenceNumber": "613808317649", "electronicCommerceIndicatorAdjustment": "01", "settlementDate": "2024-01-25T00:00:00.000Z" } } }