Integration of PayU Latam Payments PHP SDK
Integrate your application with the PayU platform. Create a connector using the
PayU Latam Payments PHP SDK
and use that connector to connect to the PayU ecosystem.
$ cd /d C:\xampp\htdocs
$ cd /opt/lampp/htdocs
$ cd applications/mamp/htdocs
$ cd PayU-Integration-SDK
$ composer install
Or
$ sudo php composer.phar install
Copy the .env.example
file and call it .env
.
Change the database configuration in the new file.
$ sudo apt-get install curl
$ sudo service apache2 restart
$ sudo apt-get install php7.2-curl
$ sudo apt-get install php7.1-curl
$ sudo apt-get install php7.0-curl
$ sudo apt-get install php5.6-curl
$ sudo apt-get install php5.5-curl
$ sudo service apache2 restart
$ sudo apt-get install php7.2-xml
$ sudo apt-get install php7.1-xml
$ sudo apt-get install php7.0-xml
$ sudo apt-get install php5.6-xml
$ sudo apt-get install php5.5-xml
$ sudo service apache2 restart
post
=> /payments
- This method is used for make payments. e.g.:
uri =
http://localhost/PayU-Integration-SDK/public/payments
args = [
// Enter the reference code here.
string $referenceCode => "payment_test_00000001",
// Enter the description here.
string $description => "payment test",
// Enter the value here.
string $amount => "20000",
// Enter the value of the VAT (Value Added Tax only valid for Colombia) of the transaction,
// if no VAT is sent, the system will apply 19% automatically. It can contain two decimal digits.
// Example 19000.00. In case you have no VAT you should fill out 0.
string $tax => "3193",
// Enter the value of the base value on which VAT (only valid for Colombia) is calculated.
// If you do not have VAT should be sent to 0.
string $taxReturnBase => "16806",
// Enter the currency here.
string $currency => "COP",
// Enter the name of the buyer here.
string $buyerName => "First name and second buyer name",
// Enter the email of the buyer here.
string $buyerEmail => "buyer_test@test.com",
// Enter the telephone number of the buyer here.
string $buyerPhone => "7563126",
// Enter the contact document of the buyer here.
string $buyerDocument => "5415668464654",
// Enter the name of the payer here.
string $payerName => "APPROVED",
// Enter the email of the payer here.
string $payerEmail => "payer_test@test.com",
// Enter the telephone number of the payer here.
string $payerPhone => "7563126",
// Enter the contact document of the payer here.
string $payerDocument => "5415668464654",
// Enter the address of the payer here.
string $shippingAddress => "calle 100",
string $shippingCity => "Bogota",
string $shippingState => "Bogota",
string $shippingCountry => "CO",
string $shippingPostalCode => "000000",
// Enter the number of credit card here.
string $cardNumber => "4097440000000004",
// Enter the expiration date of the credit card here.
string $cardExpirationDate => "2020/12",
// Enter the security code of the credit card here.
string $cardSecurityCode => "321",
// Enter the credit card name here.
// VISA||MASTERCARD||AMEX||DINERS
string $paymentMethod => "VISA",
// Enter the number of installments here.
string $installments => "1",
]
get
=> /payments/banks
- This method gets the banks list for PSE Payments. e.g.:
uri =
http://localhost/PayU-Integration-SDK/public/payments/banks
post
=> /payments/pse
- This method is used for make PSE Payments. e.g.:
uri =
http://localhost/PayU-Integration-SDK/public/payments/pse
args = [
// Enter the reference code here.
string $referenceCode => "payment_test_00000001",
// Enter the description here.
string $description => "payment test",
// Enter the value here.
string $amount => "20000",
// Enter the value of the VAT (Value Added Tax only valid for Colombia) of the transaction,
// if no VAT is sent, the system will apply 19% automatically. It can contain two decimal digits.
// Example 19000.00. In case you have no VAT you should fill out 0.
string $tax => "3193",
// Enter the value of the base value on which VAT (only valid for Colombia) is calculated.
// If you do not have VAT should be sent to 0.
string $taxReturnBase => "16806",
// Enter the currency here.
string $currency => "COP",
// Enter the buyer's email here.
string $buyerEmail => "buyer_test@test.com",
// Enter the payer's name here.
string $payerName => "First name and second payer name",
// Enter the payer's email here.
string $payerEmail => "payer_test@test.com",
// Enter the payer's contact phone here.
string $payerPhone => "7563126",
// Enter the bank PSE code here.
string $pseBank => "1007",
// Enter the person type here (Natural or legal).
string $personType => "N",
// Enter the payer's contact document here.
string $payerDocument => "123456789",
// Enter the payer’s document type here: CC, CE, NIT, TI, PP,IDC, CEL, RC, DE.
string $payerDocumentType => "CC",
]
Use index.html
for testing.
0.0.0.4 (02/14/2019)
Language: | PHP |
Changes: |
|
0.0.0.3 (02/10/2019)
Language: | PHP |
Changes: |
|
0.0.0.2 (02/09/2019)
Language: | PHP |
Changes: |
|
0.0.0.1 (02/07/2019)
Language: | PHP |
Changes: |
|
See also the list of contributors
who participated in this project.
This API is licensed under the MIT License - see the
MIT License for details.