ID: 40 - Bank Transfer (PEN)

Channel: 40

Provider: Ligo

Payment Method: Bank Transfer

Available Currencies

NameCodeCountry
Peruvian PesosPENPeru

Request example

curl --location 'http://localhost/justpay/check-out/SecurePayment.php' \
--form 'public_key="{YOUR_PUBLIC_KEY}"' \
--form 'time="2024-07-17 16:33:11"' \
--form 'amount="20"' \
--form 'currency="PEN"' \
--form 'trans_id="1"' \
--form 'time_expired="120"' \
--form 'url_ok="https://bit.ly/3S4I7iR"' \
--form 'url_error="https://bit.ly/3S5aOwc"' \
--form 'channel="40"' \
--form 'signature="52cf63c2d25ae3c6c2959f28c35465bda422c9a13d754c46bce5a71c01a0d584"' \
--form 'shopper_information="{\"name_shopper\":\"John\",\"last_name_Shopper\":\"Doe\",\"type_doc_identi\":\"DNI\",\"Num_doc_identi\":\"76699733\",\"email\":\"[email protected]\",\"country_code\":\"51\",\"Phone\":\"999763555\",\"country\":\"PER\"}"' \
--form 'filter_by="efimero"'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://localhost/justpay/check-out/SecurePayment.php',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('public_key' => '{YOUR_PUBLIC_KEY}','time' => '2024-07-17 16:33:11','amount' => '20','currency' => 'PEN','trans_id' => '1','time_expired' => '120','url_ok' => 'https://bit.ly/3S4I7iR','url_error' => 'https://bit.ly/3S5aOwc','channel' => '40','signature' => '52cf63c2d25ae3c6c2959f28c35465bda422c9a13d754c46bce5a71c01a0d584','shopper_information' => '{"name_shopper":"John","last_name_Shopper":"Doe","type_doc_identi":"DNI","Num_doc_identi":"76699733","email":"[email protected]","country_code":"51","Phone":"999763555","country":"PER"}','filter_by' => 'efimero'),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "http://localhost/justpay/check-out/SecurePayment.php"

payload = {'public_key': '{YOUR_PUBLIC_KEY}',
'time': '2024-07-17 16:33:11',
'amount': '20',
'currency': 'PEN',
'trans_id': '1',
'time_expired': '120',
'url_ok': 'https://bit.ly/3S4I7iR',
'url_error': 'https://bit.ly/3S5aOwc',
'channel': '40',
'signature': '52cf63c2d25ae3c6c2959f28c35465bda422c9a13d754c46bce5a71c01a0d584',
'shopper_information': '{"name_shopper":"John","last_name_Shopper":"Doe","type_doc_identi":"DNI","Num_doc_identi":"76699733","email":"[email protected]","country_code":"51","Phone":"999763555","country":"PER"}',
'filter_by': 'efimero'}
files=[

]
headers = {}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'http://localhost/justpay/check-out/SecurePayment.php',
  'headers': {
  },
  formData: {
    'public_key': '{YOUR_PUBLIC_KEY}',
    'time': '2024-07-17 16:33:11',
    'amount': '20',
    'currency': 'PEN',
    'trans_id': '1',
    'time_expired': '120',
    'url_ok': 'https://bit.ly/3S4I7iR',
    'url_error': 'https://bit.ly/3S5aOwc',
    'channel': '40',
    'signature': '52cf63c2d25ae3c6c2959f28c35465bda422c9a13d754c46bce5a71c01a0d584',
    'shopper_information': '{"name_shopper":"John","last_name_Shopper":"Doe","type_doc_identi":"DNI","Num_doc_identi":"76699733","email":"[email protected]","country_code":"51","Phone":"999763555","country":"PER"}',
    'filter_by': 'efimero'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Mandatory Data

AttributeMandatoryData typeDescription
public_keyTrueString (255)Public key, unique value that identifies the commerce
timeTrueDatetimeRequest data time
channelTrueIntegerPayment Channel
amountTrueDoubleThe amount of the transaction. 2 decimals
currencyTrueString (3)Transaction currency code
trans_idTrueString (255)Transaction id
time_expiredTrueString (255)Time in minutes to expire the token. Value given in minutes. Minimum: 30 minutes
url_okTrueString (255)URL where shopper will be redirected from the online banking if payment was successful (Must be Https)
url_errorTrueString (255)URL where shopper will be redirected from the online banking if payment was wrong.(Must be Https)
signatureTrueString (255)Signature hash256: Review signature calculation
shopper_informationTrueJSON StringJSON String Data: Review JSON index & format
filter_byTrueString (255)

Defines the transfer method and does not allow the user to modify it. Possible values:

efimero, efimero_v2

shopper_information JSON format

📘

Field shopper_information must be send in string format (JSON encode).

{"name_shopper":"John","last_name_Shopper":"Doe","type_doc_identi":"DNI","Num_doc_identi":"76699733","email":"[email protected]","country_code":"51","Phone":"999763555","country":"PER"}

The shopper_information field is a column corresponding to a json with the next keys:

ParameterMandatoryData TypeDescription
name_shopperTrueString (255)Shopper's name
last_name_ShopperTrueString (255)Shopper's last name
type_doc_identiTrueString (255)Identification document [CI, RUT, PAS, DNI]
Num_doc_identiTrueString (255)Identification document number
emailTrueString (255)Shopper's e-mail
country_codeTrueString (10)Country's phone code (Ex. +51)
PhoneTrueString (20)Shopper's phone number
countryTrueString (3)Country ISO code [PER]

Transfer Method

You can filter the available method by sending the filter_by field in the payload.

Method enabled

QRCode (filter_by)
Efimeroefimero
Efimero V2efimero_v2

Note: This filed is required Filter_by

Errors

This payment integration only sends notifications for successfully completed transactions. This means that error messages will not be generated for failed transactions.