WebCheckout integration lets your customers select the items they want to purchase in your shop and perform the payment in our Payment gateway (WebCheckout).
Implement PayU with the aggregator model or gateway, using PayU’s financial agreements or your own. Select the integration that fits best with your needs:
PayU Checkout is an integration that allows you to collect through a PayU web form from any device in a simple, fast and secure way.
- PayU manages the payment system
- Easier integration, equally secure
- Since PayU manages the payment platform, it is easier to get PCI DSS certification
Through API or SDK integrations, you can receive payments securely from anywhere you like, on your website or mobile app.
- Design your checkout and manage the payment system of your website.
- Access to additional services such as Tokenization or Recurring payments
How to get variables for integration.
Regardless of the integration selected, you may require any of the following variables in the request of the methods.
API key and API Login
Click Settings and then select Technical configuration.
- In this window, you find both the API key and API Login which allows you to authenticate you commerce during the integration procedure.
WarningBoth keys are unique per commerce in PayU, therefore, you must keep this information secured and their usage or disclosure is under your responsibility.
signature is used to validate the payments performed through the platform, ensuring their authenticity. This variable is a string value encrypted using MD5 or SHA algorithms and follows this structure.
Let’s build a
signature using the following test values:
The string is these values concatenated with the tilde character (~):
After you apply the MD5 algorithm, the
signature value is:
The deviceSessionId is a code with the information of the device where the transaction was generated and provides a unique identifier for the device. This variable lets us identify attackers.
- To perform either API or SDK integration, you need to include the following script in your payment form:
- It is important to generate the
deviceSessionIdper each transaction. To generate the
session_idof the cookie and concatenate it with the current timestamp along with the milliseconds. Then, encrypt the result using MD5.
Example in PHP
$deviceSessionId = md5(session_id().microtime())
For example, if the
d66f949f19b33e88c202b579cfc549b3, the script is as follows:
Topics in this Section
PayU’s API integration allows your business to process transactions from different types of applications (web, mobile, IVR, etc).
PayU’s Software Development Kit (SDKs) provides a simple solution for a complex integration.