Payment Request
POST/EPGCheckout/rest/online/pay - Payment Request
Query Parameters
- merchantId string required
Identifier of your business in the Addon Payments platform.
Example: 123456 - encrypted string required
- Encryption of the clear query parameters
- And the final data sent will be in base64 form
- For the object see the Request Body
Example: yGbFUz+X9hDK/R39QFRpckGojl/vSCJPCETpxxwPTXw+q+NQMeHUQDbj7OJYy6ZsKE+sbQIedQ36YUc8yKt7/aOU5xyyFamFaUM5MzU4oOAPNwBEkeBrbGdb0uwyJEJObij0tao1+r5XSCLBKGd1FM8pAhROaGJ8SqdFFWlgx2x9zvhtARDdU79AUPK79uAu9h34PK8eJCpPzLD2jRX7EruCtHeDjuPPZWUo2yhAMO33cKmTv8pGOGnFr0U+KbacbZZMZk2l0X+KADpKOLVFMvLJAOKR7kpqNXcqQulgaU8VtlXizk4bj6Gc/EilVcfyb7Ibyb9AO2hO3VvUk6/b9yCzIE4kIaKnKTmi5QuBKbR9zPDnPgjstMNZgpa9iY5XWxPR+FQA3DGgprnMUxwB6b6y5YQz7Z3Y4TBsjDTSb/2kl/pGBwx0C8kFleLcBZQbr7dgLO3OxAO+RnMOrU4SdTjKTJ9XcWeLsVlw0Ti7a625lpsFTej/q279KyEcoPmJaQnraXbm+ERM8hz5nPeQzvmmyXSnNB5noWbhAQGOnZVqopor9c14rH1NCasAyqgq7auzk39WdVlVCXKvQ01MIerjfr7jQhKHrnQ9Nz/T0hpbxMGxxsMLzjIe5xAz8VfCfwUaS96wQLqU+NCV9PBY79fH55rUPChEFZaQoFzOema6UEC+qvYScceiGtU15Abr+yjGCnAvHjpbdJykwTgEcWcNjOvntuLrpkTrnc/4L5VYyqvW2SUfQ7UKpfuEIoy4KU54dih1jM3MCIhh/vGrqBUsi2mmJUxrkkREkKrCR36CI6I0zv/sp2l7htzB3f8v1wq6rMCyo6a2yLSpHXSdk9jcEkwUbfEhb5SAsbTIw/Hpumr8POkXHiENx9ntg7htB8j4ON7ubnG5Qb93ktWI8uPuSQDf/+rCMii33YI2yjS59w/z5I40FG40lVDwgU0H1xSFiLbICFda78oQCOXHiFcTLlL7joV1JTHiwBYa5gz2Cwkm6toLZkVLW6O6ZmFtMMu++VjIcyeJaA+IssCpptSQq5mtq/tzLb2UzER0xSGRLzX0lVIi21P31KaVws4dX1rrx3McAoJArsrITamPI8kN+hzmgaErpQfwH994ivNBT/1jUlOvs6CXvEawU5vrCegp1ayofYeeyIo7JIvbjPfI6C58KJMxwHr+IWbTOFY+GErQxo3k5UTBmSICmkekzcgToaxzKYS6v/55VPJpNCl5lBNLoyj6u67jsQooYgkInnaYBidEW8Tc/mryz07P - integrityCheck string required
- Hash256 of the clear query parameters in UTF_8 bytes
- Sent in hex form in lower case
Example: c4ca128afe39a4e2c5c3c529813f536d0265b5b90f30eeb3278236406d67db7c
Header Parameters
- apiVersion string required
Version of the AP API for which the request should be processed
- Supported values are 3, 4, and 5 (recommended)
Example: 5 - encryptionMode string required
AES-256 encryption type used (CBC)
Example: CBC - iv string required
Initial Vector used in the encryption process in Base64 Form
Example: gH9j/x+Qu7M2r2SYPfa3UA==
- application/json
Body
- It is a numeric code provided by Support in the welcome email
- It has 4 to 7 digits and is common for both environments (test/production).
- It cannot be repeated between transactions.
- Max. 45 characters - Latin-1 code page (ISO-8859-1)
- If the amount contains decimals, the period (.) is used as the decimal separator.
- You cannot include a thousands separator.
- In transactions that do not generate monetary movement, such as the registration of a customer's card, zero (0) must be sent as the amount.
- For example, €1,234.56 would be sent 1234.56
- ISO-4217.3 code (EUR, USD, GBP, etc.).
- Alphanumeric – Max. 80 characters.
- CardPayment
- ReferencePayment
- Numeric – Max. 19 digits.
- Must pass the validation of the Luhn Check algorithm.
- Numeric – 4 digits.
- Format: MMYY - MM the two digits of the month and YY the last two digits of the year.
- Example: June 2023 -> 0623
- Numeric – 3 ~ 4 digits.
- Alphanumeric – 16~20 characters.
- The card expiration date is received in the authorized transaction status notifications together with the card reference.
- Format: MMYY - MM the two digits of the month and YY the last two digits of the year.
- For example: June 2023 -> 0623
- It is provided in the welcome email.
- Has 6 to 11 numerical digits.
- The product is the one that limits which payment solutions of those activated for commerce are offer to the customer.
- AP allows businesses to have various products configured to their needs.
- If it is not sent, AP will use the first product from the business that is marked in the DB as "default"
- If the merchant does not have any product marked "default" and the parameter is not sent, the request will fail.
- It can be different depending on the environment (test and production).
- For example:
- A business has the card, Bizum and Quix payment solutions activated.
- The business has two products, one for national customers with all payment solutions activated, and another for international customers with only card payment.
- The merchant indicates the identifier of one or another product in the request depending on the nationality of your client
- With this, it avoids offering payment solutions such as Bizum or Quix, which can only operate with national clients, to international clients.
- If the parameter is not sent, "debit" will be used by default.
- Possible values are:
- debit: payment transaction, that is, cash travels from the customer's account to the merchant.
- credit: deposit transaction in the client's account, that is, the cash travels from the merchant to the client'saccount, such as the payment of a prize. Not to be confused with returns, which have their own type of transaction.
- Only for Hosted integration.
- The following languages are currently available:
- ES: Spanish
- EN: English
- If it is sent in the request, it will have priority over the one configured in the Addon Payments administration panel.
- Alphanumeric – Max. 2048 characters.
- Alphanumeric – Max. 2048 characters.
- If it is sent in the request, it will have priority over the one configured in the Addon Payments administration panel.
- If it is not sent in the request, the client will be redirected to the URL configured in the module administration.
- Alphanumeric – Max. 2048 characters.
- If it is sent in the request, it will have priority over the one configured in the Addon Payments administration panel.
- If it is not sent in the request, the client will be redirected to the URL configured in the module administration.
- Alphanumeric – Max. 2048 characters.
- If it is sent in the request, it will have priority over the one configured in the Addon Payments administration panel.
- If it is not sent in the request, the client will be redirected to the URL configured in the module administration.
- Possible values are:
- ecom: electronic commerce.
- moto: order by phone or email.
- The parameters that are sent will be received back in the response.
- It can be useful to locate or identify it later in the AP management panel.
Identifier of your business on the AP platform.
Transaction identifier in your trading platform electronic. It is used for your platform to link the notifications received with the customer's order.
Amount of the transaction.
Possible values: [EUR, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNH, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VES, VND, VUV, WST, XAF, XAG, XAU, XCD, XDR, XOF, XPD, XPF, XPT, YER, ZAR, ZMW, ZWL]
Currency of the transaction.
Possible values: [AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CY, CZ, DK, DJ, DM, DO, TP, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IL, IT, JM, JP, JO, KZ, KE, KI, KP, KR, KV, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, MS, ME, MA, MZ, MM, NA, NR, NP, NL, AN, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, SH, KN, LC, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SK, SI, SB, SO, ZA, GS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, US, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW]
Country from which the transaction is sent. * ISO 3166-1 alpha-2 code (ES, US, UK, etc.).
ID. of the customer in your e-commerce platform.
Name of the payment solution through which the transaction must be processed (creditcards, etc.).
cardData object required
Brand of the card.
PAN of the card.
Expiration date of the card.
CVC of the card.
Customer card reference generated by AP.
Customer card expiration date.
Highly Recommended identifier of the product created in your business in AP for which it must be processed the transaction.
Possible values: [DEBIT, CREDIT]
Specifies the type of operation to perform.
Possible values: [ES, EN]
language in which the payment gateway must be displayed to the customer.
Highly Recommended URL of your e-commerce platform where AP will send the notification with the status of the transaction.
Highly Recommended Return URL to the merchant's website to which the customer will be redirected if the transaction is authorized.
Highly Recommended Return URL to the merchant's website to which to redirect the customer if the transaction is denied.
Highly Recommended Return URL to the merchant's website to which the customer will be redirected if they cancel the transaction.
URL of your platform to which the customer is redirected if the payment solution has to carry out internal procedures that may take time.
Possible values: [MOTO, ECOM]
Channel through which the transaction must be managed.
Parameters that your electronic commerce platform sends to modify the management of the transaction in AP.
Description of the transaction.
Name and surname of the owner.
Possible values: [true, false]
Show the end customer a receipt in the optional redirection process.
Possible values: [false, true]
Indicates whether or not to save the customer's card token. If you don't want to save the card, use "false"
Variable reference for businesses that need FB500 reconciliation files.
- 200
- string
- Schema
- Example
Schema
https://checkout.stg-eu-west3.epgint.com/EPGCheckout/rest/online/detokenize?token=e019f222-876d-4b81-8c3a-a99e52e6d9bf&apiVersion=5