QR (Perú)
This payment solution is only available in Perú.
How does it works?
Generation of the QR Code: To accept payments via QR code, the seller must generate a QR code linked to the transaction amount.
Scanning the Code: Once the QR code has been generated, the customer must scan it with their mobile device. This can be done using their bank's app
Confirmation and Authorization: When the code is scanned, a payment screen will open on the customer's device, allowing them to review the transaction details and complete the payment.
Transaction Processing: The information is transmitted through a secure network, and the transaction is processed. The funds are transferred from the customer's account to the operator's account.
Payment Confirmation: Both parties involved receive instant notifications confirming the success of the transaction.
QR
POST
https://api.stage.localpayment.com/api/payin
Headers
Authorization*
string
Mandatory. JWT token in format Bearer eyJ0...
. For more information about authentication, please refer to Authentication.
Request Body
externalId*
string
Mandatory. An ID that is meaningful to you and your system. It must be unique and alphanumeric, no characters allowed.
paymentMethod*
object
Mandatory. Payment method details.
paymentMethod.type*
string
Mandatory. ”BankTransfer".
paymentMethod.code*
string
Mandatory. “6080" (QR).
paymentMethod.flow*
string
Mandatory. “DIRECT".
country*
string
currency*
string
Mandatory. The currency in which the amount is expressed. It could be he local currency of the selected country (PEN).
accountNumber*
string
Mandatory. Your Localpayment account number in which the amount will be credited.
conceptCode*
string
comment
string
Optional. A comment related to the transaction. It should be something meaningful to your business.
merchant*
object
Mandatory. Merchat details.
merchant.type*
string
Mandatory. Possible value: COMPANY
.
merchant.name*
string
Mandatory. Name of business.
payer*
object
Mandatory. Information related to the payer.
payer.type*
string
Mandatory. Possible values: COMPANY
, INDIVIDUAL
.
payer.name*
string
Mandatory. Individual first name / company name.
payer.lastName*
string
Mandatory for individuals / Ignored for companies.
payer.document*
object
payer.document.type*
string
Mandatory. Document types.
payer.document.id*
string
Mandatory. Identity document Id. Usually numbers or combination of numbers and letters.
string
Mandatory. Email payer.
commercialData
array object
Optional. Extra information related to the goods or services traded.
items.id
string
Mandatory. Item ID.
items.title
string
Mandatory. Item title.
items.description
string
Mandatory. Item description.
items.quantity
number
Mandatory. Item quantity.
item.unitPrice
number
Mandatory. Item unit price.
Example
Request Body
Response Body 200 OK
Response Body 400 Bad Request
QR image
QR payment order response will return, among others, an OBJECT named "qr". The elements that compose the "qr" object are: "image" (QR image in base64),"expirationDate" and "paymentInstructions".
Complete the Payment with YAPE
Last updated
Was this helpful?