Redsys Rest Payment Integration

About Redsys Rest:

Redsys Rest services were integrated by HostedPCI in 2023, we support the following credit card processing features.

Implemented Features:

FeatureLevel of Support
AuthImplemented
Sale (Auth+Capture)Implemented
CaptureImplemented
VoidImplemented
CreditImplemented
3D Secure 2Implemented
Card On FIleImplemented

Authentication and Security Credentials:

Supported Parameters:

KEY NAMEFORMATMANDATORYDESCRIPTIONS
apiVersionNumericalRequired“1.0.1”
apiTypeAlphabeticalRequired“pxyhpci”
userNameAlphanumericRequiredAPI Username
userPassKeyAlphanumericRequiredAPI PassKey
pxyCreditCard.creditCardNumberNumericalRequiredHostedPCI Token Representing Credit Card
pxy.CreditCard.cardCodeVerificationNumericalOptionalHostedPCI Token Representing CVV Code
pxyCreditCard.expirationMonthNumericalRequiredExpiration month with 2 digits for example, for December use “12”
pxyCreditCard.expirationYearNumericalRequiredExpiration year with 4 digits for example, for 2025, use “2025”
pxyTransaction.txnCurISOAlphabeticalRequired3 letter ISO Currency Code for example, “USD” or “CAD”
pxyTransaction.txnAmountNumericalRequiredAmount to Authorize, for example for $10.50 use 10.50
pxyTransaction.merchantRefIdNumericalRequiredMerchant reference number can be order id or invoice id
pxyTransaction.txnPayNameAlphanumericRequiredHostedPCI payment profile name, for example “DEF”
pxyTransaction.txnCommentAlphabeticalOptionalShort comment
pxyCustomerInfo.emailAlphanumericOptionalCustomer’s Email Address
pxyCustomerInfo.customerIPNumericalOptionalCustomer’s IP Address
pxyCustomerInfo.billingLocation.firstNameAlphabeticalOptionalCustomer’s First Name
pxyCustomerInfo.billingLocation.lastNameAlphabeticalOptionalCustomer’s Last Name
pxyCustomerInfo.billingLocation.phoneNumberNumericalOptionalBilling Phone Number
pxyCustomerInfo.billingLocation.faxNumericalOptionalBilling Fax Phone Number
pxyCustomerInfo.billingLocation.companyNameAlphanumericOptionalBilling Company Name
pxyCustomerInfo.billingLocation.addressAlphanumericOptionalCustomer’s Billing Address
pxyCustomerInfo.billingLocation.cityAlphabeticalOptionalCustomer’s Billing City
pxyCustomerInfo.billingLocation.stateAlphabeticalOptionalCustomer’s Billing State or Province
pxyCustomerInfo.billingLocation.zipCodeNumericalOptionalCustomer’s Billing Zip Code or Postal Code
pxyCustomerInfo.billingLocation.countryAlphabeticalOptionalCustomer’s Billing Country
pxyCustomerInfo.billingLocation.tax1NumericalOptionalBilling Tax 1

API Endpoint URL:

https://[HPCI_API_HOSTENAME]/iSynSApp/paymentAuth.action

API Request Body:

apiVersion=1.0.1&apiType=pxyhpci&userName=[APIuserName]&userPassKey=[APIPassKey]&pxyCreditCard.creditCardNumber=[CreditCardToken]&pxyCreditCard.cardCodeVerification=[CVVToken]&pxyCreditCard.expirationMonth=[ExpiryMonth]&pxyCreditCard.expirationYear=[ExpiryYear]&pxyTransaction.txnCurISO=[Currency]&pxyTransaction.txnAmount=[Amount]&pxyTransaction.merchantRefId=[UniqueMerchantRefID]&pxyTransaction.txnPayName=[ProfileName]&pxyTransaction.txnComment=[ShortComment]&pxyCustomerInfo.billingLocation.firstName=[CustomerFirstName]&pxyCustomerInfo.billingLocation.lastName=[CustomerLastName]&pxyCustomerInfo.billingLocation.address=[BillingStreetAddress]&pxyCustomerInfo.billingLocation.city=[BillingCity]&pxyCustomerInfo.billingLocation.state=[State/Province]&pxyCustomerInfo.billingLocation.zipCode=[ZipCode/PostalCode]&pxyCustomerInfo.billingLocation.country=[Country]&pxyCustomerInfo.shippingLocation.firstName=[ShippingFirstName]&pxyCustomerInfo.shippingLocation.lastName=[ShippingLastName]&pxyCustomerInfo.shippingLocation.address=[ShippingStreetAddress]&pxyCustomerInfo.shippingLocation.city=[ShippingCity]&pxyCustomerInfo.shippingLocation.state=[ShippingState/Province]&pxyCustomerInfo.shippingLocation.zipCode=[ShippingZipCode/PostalCode]&pxyCustomerInfo.shippingLocation.country=[ShippingCountry]

Redsys Rest 3D Secure 2 Implementation

In order to implement 3D Secure 2, the Redsys Rest payment profile must include the 3DS OTP Notification URL during the payment profile setup.

PARAMETER NAMEPossible VALUE
3DS OTP Notification URLhttps://ccframe.hostedpci.com/iSynSApp/appUserVerify3DResp!verifyResp.action

3ds 2.0 Redsys Rest “verifyenroll” call

PARAMETERSVALUES
pxyCustomerInfo.browserAcceptHeader[browserAcceptHeader]
pxyCustomerInfo.browserUserAgentHeader[browserUserAgentHeader]
pxyThreeDSecAuth.callMode[reportall]
pxyTransaction.txnPayName[3dsecProfileName]
pxyThreeDSecAuth.actionName[verifyenroll]
Redsys Rest 3DS 2 “verifyenroll” Request sample:
apiType=pxyhpci&apiVersion=1.0.1&pxyCreditCard.cardCodeVerification=200&pxyCreditCard.creditCardNumber=491800..........&pxyCreditCard.expirationMonth=01&pxyCreditCard.expirationYear=2028&pxyCustomerInfo.billingLocation.address=15+Main+St&pxyCustomerInfo.billingLocation.addressNumber=15&pxyCustomerInfo.billingLocation.city=Paris&pxyCustomerInfo.billingLocation.country=FR&pxyCustomerInfo.billingLocation.firstName=Test&pxyCustomerInfo.billingLocation.lastName=Name&pxyCustomerInfo.billingLocation.phoneNumber=4168351525&pxyCustomerInfo.billingLocation.zipCode=45784&pxyCustomerInfo.browserAcceptHeader=text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2C%2A%2F%2A%3Bq%3D0.8%2Capplication%2Fjson&pxyCustomerInfo.browserUserAgentHeader=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F71.0.3578.98+Safari%2F537.36&pxyCustomerInfo.customerIP=127.0.0.1&pxyCustomerInfo.customerId=hpcitest1&pxyCustomerInfo.email=hpt1%40mailtor.com&pxyDeviceInfo.colorDepth=24&pxyDeviceInfo.javaEnabled=false&pxyDeviceInfo.javaScriptEnabled=false&pxyDeviceInfo.language=en-US&pxyDeviceInfo.screenHeight=1250&pxyDeviceInfo.screenWidth=1320&pxyDeviceInfo.timezone=52&pxyOrder.description=Test+Order&pxyOrder.invoiceNumber=Order%3A+AD135111&pxyOrder.orderItems[0].itemDescription=Best&pxyOrder.orderItems[0].itemId=Item-1-AD135111&pxyOrder.orderItems[0].itemName=item&pxyOrder.orderItems[0].itemPrice=01&pxyOrder.orderItems[0].itemQuantity=1&pxyOrder.orderItems[0].itemTaxable=N&pxyOrder.totalAmount=01&pxyThreeDSecAuth.actionName=verifyenroll&pxyThreeDSecAuth.callMode=reportall&pxyTransaction.merchantRefId=AD135111&pxyTransaction.txnAmount=12&pxyTransaction.txnCurISO=EUR&pxyTransaction.txnPayName=DEF_RedsysRest&userName=%5BAPIUsername%5D&userPassKey=%3A%5BAPIUserPasskey%5D
Redsys Rest 3DS 2 “verifyenroll” Response:
pxyResponse.cardOnFileIssuerId=&pxyResponse.cardOnFileSettlementDate=&pxyResponse.declineSource=&pxyResponse.gatewaySubToken1=&pxyResponse.gatewaySubToken2=&pxyResponse.gatewaySubToken3=&pxyResponse.gatewayToken.fullNativeResp=&pxyResponse.gatewayToken.status=&pxyResponse.gatewayToken=&pxyResponse.macCode=&pxyResponse.macDescription=&pxyResponse.mappedParams=txnResponse.ccTypeEst%3DVISA&pxyResponse.merchantRefId=AD135111&pxyResponse.processorRefId=AD135111&pxyResponse.processorType=redsysrestResponse&pxyResponse.responseAVS1=&pxyResponse.responseAVS2=&pxyResponse.responseAVS3=&pxyResponse.responseAVS4=&pxyResponse.responseCVV1=&pxyResponse.responseCVV2=&pxyResponse.responseStatus.description=0&pxyResponse.responseStatus.name=&pxyResponse.responseStatus.reasonCode=&pxyResponse.responseStatus=3dsecure&pxyResponse.threeDSARS=&pxyResponse.threeDSAcsTxnId=&pxyResponse.threeDSAcsUrl=https%3A%2F%2Fsis-d.redsys.es%2Fsis-simulador-web%2FauthenticationRequest.jsp&pxyResponse.threeDSCAVV=&pxyResponse.threeDSDDCPageData=&pxyResponse.threeDSDDCUrl=&pxyResponse.threeDSECI=&pxyResponse.threeDSEnrolled=Y&pxyResponse.threeDSErrorDesc=&pxyResponse.threeDSErrorId=&pxyResponse.threeDSErrorSubId=&pxyResponse.threeDSMessageId=&pxyResponse.threeDSOrderId=AD135111&pxyResponse.threeDSPARequest=eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6IjkxMzVjMGQ0LTA3YWYtNDYzOC04ZGZhLTQxYWY3Y2YxZWY0OSIsImFjc1RyYW5zSUQiOiJkYjAwZmNiNy03ZmE0LTQzZWUtYjc0MC1hMjcxYmI3NTlmNDgiLCJtZXNzYWdlVHlwZSI6IkNSZXEiLCJtZXNzYWdlVmVyc2lvbiI6IjIuMS4wIiwiY2hhbGxlbmdlV2luZG93U2l6ZSI6IjA1In0&pxyResponse.threeDSProtoVersion=2.1.0&pxyResponse.threeDSProvider=redsysrest&pxyResponse.threeDSReasonCode=&pxyResponse.threeDSReasonDesc=&pxyResponse.threeDSSessionId=&pxyResponse.threeDSTransactionId=9135c0d4-07af-4638-8dfa-41af7cf1ef49&pxyResponse.threeDSXid=&status=error

3ds 2.0 Redsys Rest “verifyresp” call

PARAMETERSVALUES
pxyThreeDSecAuth.authTxnId[pxyResponse.threeDSTransactionId] – returned from the ‘verifyenroll’ call]
pxyTransaction.txnPayName[3dPayProfileName]
pxyThreeDSecAuth.actionName[verifyresp]
pxyThreeDSecAuth.protocolVersion[pxyResponse.threeDSProtoVersion] – response from the verifyenroll call
Redsys Rest 3DS 2 “verifyresp” Request sample:
apiType=pxyhpci&apiVersion=1.0.1&pxyCreditCard.cardCodeVerification=200&pxyCreditCard.creditCardNumber=491800...........&pxyCreditCard.expirationMonth=01&pxyCreditCard.expirationYear=2028&pxyCustomerInfo.billingLocation.address=15+Main+St&pxyCustomerInfo.billingLocation.addressNumber=15&pxyCustomerInfo.billingLocation.city=France&pxyCustomerInfo.billingLocation.country=FR&pxyCustomerInfo.billingLocation.firstName=Test&pxyCustomerInfo.billingLocation.lastName=Name&pxyCustomerInfo.billingLocation.phoneNumber=4168351525&pxyCustomerInfo.billingLocation.zipCode=45784&pxyCustomerInfo.browserAcceptHeader=text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2C%2A%2F%2A%3Bq%3D0.8%2Capplication%2Fjson&pxyCustomerInfo.browserUserAgentHeader=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F71.0.3578.98+Safari%2F537.36&pxyCustomerInfo.customerIP=127.0.0.1&pxyCustomerInfo.customerId=hpcitest1&pxyCustomerInfo.email=hpt1%40mailtor.com&pxyDeviceInfo.colorDepth=24&pxyDeviceInfo.javaEnabled=false&pxyDeviceInfo.javaScriptEnabled=false&pxyDeviceInfo.language=en-US&pxyDeviceInfo.screenHeight=1250&pxyDeviceInfo.screenWidth=1320&pxyDeviceInfo.timezone=52&pxyOrder.description=Test+Order&pxyOrder.invoiceNumber=Order%3A+AD135111&pxyOrder.orderItems[0].itemDescription=Best&pxyOrder.orderItems[0].itemId=Item-1-AD135111&pxyOrder.orderItems[0].itemName=item&pxyOrder.orderItems[0].itemQuantity=1&pxyOrder.orderItems[0].itemTaxable=N&pxyThreeDSecAuth.actionName=verifyresp&pxyThreeDSecAuth.authTxnId=%5Bverifyenroll%3ApxyResponse.threeDSTransactionId%5D&pxyThreeDSecAuth.callMode=reportall&pxyThreeDSecAuth.protocolVersion=%5Bverifyenroll%3ApxyResponse.threeDSProtoVersion%5D&pxyTransaction.merchantRefId=AD135111&pxyTransaction.txnAmount=12&pxyTransaction.txnCurISO=EUR&pxyTransaction.txnPayName=DEF_RedsysRest&userName=%5BAPIUsername%5D&userPassKey=%3A%5BAPIUserPasskey%5D
Redsys Rest 3DS 2 “verifyresp” Response:
pxyResponse.cardOnFileIssuerId=&pxyResponse.cardOnFileSettlementDate=&pxyResponse.declineSource=&pxyResponse.gatewaySubToken1=&pxyResponse.gatewaySubToken2=&pxyResponse.gatewaySubToken3=&pxyResponse.gatewayToken.fullNativeResp=&pxyResponse.gatewayToken.status=&pxyResponse.gatewayToken=0&pxyResponse.macCode=&pxyResponse.macDescription=&pxyResponse.mappedParams=txnResponse.ccTypeEst%3DVISA&pxyResponse.merchantRefId=AD135111&pxyResponse.processorRefId=AD135111&pxyResponse.processorType=redsysrestResponse&pxyResponse.responseAVS1=&pxyResponse.responseAVS2=&pxyResponse.responseAVS3=&pxyResponse.responseAVS4=&pxyResponse.responseCVV1=&pxyResponse.responseCVV2=&pxyResponse.responseStatus.description=0&pxyResponse.responseStatus.name=&pxyResponse.responseStatus.reasonCode=&pxyResponse.responseStatus=approved&pxyResponse.threeDSARS=&pxyResponse.threeDSAcsTxnId=&pxyResponse.threeDSAcsUrl=&pxyResponse.threeDSCAVV=&pxyResponse.threeDSDDCPageData=&pxyResponse.threeDSDDCUrl=&pxyResponse.threeDSECI=&pxyResponse.threeDSEnrolled=&pxyResponse.threeDSErrorDesc=&pxyResponse.threeDSErrorId=&pxyResponse.threeDSErrorSubId=&pxyResponse.threeDSMessageId=&pxyResponse.threeDSOrderId=&pxyResponse.threeDSPARequest=&pxyResponse.threeDSProtoVersion=&pxyResponse.threeDSReasonCode=&pxyResponse.threeDSReasonDesc=&pxyResponse.threeDSSessionId=&pxyResponse.threeDSTransactionId=9135c0d4-07af-4638-8dfa-41af7cf1ef49&pxyResponse.threeDSXid=9135c0d4-07af-4638-8dfa-41af7cf1ef49&saleId=827249907&status=success