PagSeguro Payment Integration

About PagSeguro :

PagSeguro is a financial services and digital payments company based in São Paulo, Brazil and incorporated in the Grand Cayman, Cayman Islands. Founded in 2006, the company primarily offers payment processing software for e-commerce websites and mobile applications, and point of sale terminals.

Implemented Features:

FeatureLevel of Support
Sale (Auth+Capture)Implemented
CaptureImplemented
CreditImplemented

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”
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.addressAlphanumericOptionalCustomer’s Billing Address
pxyCustomerInfo.billingLocation.address2AlphanumericOptionalSecondary 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.shippingLocation.addressAlphanumericOptionalCustomer’s Shipping Address
pxyCustomerInfo.shippingLocation.address2AlphanumericOptionalSecondary Shipping Address
pxyCustomerInfo.shippingLocation.cityAlphabeticalOptionalCustomer’s Shipping City
pxyCustomerInfo.shippingLocation.stateAlphabeticalOptionalCustomer’s Shipping State or Province
pxyCustomerInfo.shippingLocation.zipCodeAlphabeticalOptionalCustomer’s Shipping Zip Code or Postal Code
pxyCustomerInfo.shippingLocation.countryAlphabeticalOptionalCustomer’s Shipping Country

API Endpoint URL:

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

API Request Body:

pxyCreditCard.creditCardNumber=411111..........&pxyOrder.orderItems[0].itemPrice=10.00&pxyCustomerInfo.billingLocation.city=Rio+de+Janeiro&pxyOrder.orderItems[0].itemQuantity=1&pxyOrder.orderItems[0].itemDescription=Item+Description+1&pxyOrder.orderItems[0].itemTaxable=N&userPassKey={API PASSKEY]&pxyCustomerInfo.billingLocation.address2=31&pxyTransaction.txnAmount=10.00&pxyTransaction.txnComment=New+Sa54&pxyCreditCard.cardCodeVerification=134&pxyTransaction.txnPayName=DEF_PagSeguro&pxyTransaction.merchantCompanyName=Bold&apiVersion=1.0.1&pxyCustomerInfo.customerIP=172.0.0.1&pxyCustomerInfo.billingLocation.firstName=Lid&pxyCustomerInfo.billingLocation.state=RJ&pxyCustomerInfo.billingLocation.country=BR&pxyCustomerInfo.billingLocation.phoneNumber=%2B5511991234556&pxyOrder.orderItems[0].itemName=Item-Name1&pxyTransaction.merchantProductName=PRODUCT+1234567&pxyCreditCard.expirationMonth=03&pxyCustomerInfo.customerId=CCMAS581030784&userName=[API USERNAME]&pxyTransaction.txnCurISO=BRL&pxyCustomerInfo.billingLocation.zipCode=87030010&pxyCustomerInfo.email=ro%40pn.ca&pxyOrder.orderItems[0].itemId=Item-1-ADER45200923&pxyCustomerInfo.billingLocation.neighborhood=Janeiro&pxyCustomerInfo.officialDocNumber=53033315550&pxyCreditCard.expirationYear=2030&pxyOrder.orderItems[0].note1=digital&pxyCustomerInfo.billingLocation.lastName=Plon&pxyCustomerInfo.billingLocation.address=Rebel+St&apiType=pxyhpci&pxyTransaction.merchantRefId=ADER45200923&pxyCustomerInfo.billingLocation.addressNumber=2&pxyCustomerInfo.billingLocation.district=Rio+de+Janeiro