QR Master Pass: відмінності між версіями

Матеріал з partnerdocs
Немає опису редагування
Рядок 32: Рядок 32:
<p style="border: 1px solid deepskyblue; background-color: rgba(135, 206, 235, 0.2); padding: 10px; border-radius: 8px; font-family: Arial, sans-serif; font-size: 14px; font-weight: normal; position: relative; padding-left: 70px;">
<p style="border: 1px solid deepskyblue; background-color: rgba(135, 206, 235, 0.2); padding: 10px; border-radius: 8px; font-family: Arial, sans-serif; font-size: 14px; font-weight: normal; position: relative; padding-left: 70px;">
<span style="position: absolute; top: 10px; left: 10px; background-color: deepskyblue; color: white; padding: 2px 12px; border-radius: 4px; font-size: 14px; font-weight: bold;">GET</span>
<span style="position: absolute; top: 10px; left: 10px; background-color: deepskyblue; color: white; padding: 2px 12px; border-radius: 4px; font-size: 14px; font-weight: bold;">GET</span>
<span style="margin-left: 5px; font-weight: bold; font-size: 16px;">/api/payment/qrPaymentCheck</span></p>
<span style="margin-left: 5px; font-weight: bold; font-size: 16px;">/api/payment/qrPaymentCheck</span></p><br>
<br>
'''Request'''<syntaxhighlight lang="http" line="1">
Request
headers
'PartnerKey: partnerName'
'locale: ua'
'AppId: a5806a5f-dbb8-496a-a23f-aab6d2fcbce1'
'PageId: 2ce7dba6-4600-456e-b9c8-f13cacf1c85d'
'Sign: e0v1vIOMyNt2qSmrG5+sjAq8wOhvgDDUEyfVP21mRU4='
 
queryParams
“orderId”: “string”
 
</syntaxhighlight>'''Response'''<syntaxhighlight lang="http" line="1">
headers
----
 
body
{
  "status": "Generated",
  "transactionId": null,
  "error": null
}
 
</syntaxhighlight>
{| style="border-collapse: collapse; width: 100%; font-family: Roboto, sans-serif; font-weight: 100; font-size: 0.8em; color: #333;"
! style="border: none; border-bottom: 1px solid #d3d3d3; text-align: center; padding: 8px;" |Параметр
! style="border: none; border-bottom: 1px solid #d3d3d3; text-align: center; padding: 8px;" |Характеристика
|-
| style="border: none; border-bottom: 1px solid #d3d3d3; padding-right: 10px; text-align: left;" |'''<code>status</code>'''
| style="border: none; border-bottom: 1px solid #d3d3d3; padding-right: 10px; text-align: left;" |'''Можливі значення:'''
 
* '''Generated'''
* '''Scanned'''
* '''PaymentStarted'''
* '''PaymentFinished'''
* '''None'''
|-
| style="border: none; padding-right: 10px; text-align: left;" |'''<code>transactionId</code>'''
| style="border: none; padding-right: 10px; text-align: left;" |ідентифікатор платежу в системі EasyPay.
|}

Версія за 17:23, 25 лютого 2026

(Для мерчантів, які мають пряму інтеграцію з MasterPass)

Оплата з гаманця MasterPass із використанням Qr code.

Отримання даних для QR-code


Потрібно створити сесію (для детальної інформації перейдіть за посиланням - Створення сесії). Після цього необхідно створити замовлення (Створення замовлення).

У відповіді в paymentInstrumentsTypes => instrumentType: "QrMasterpass" об'єкт, який містить інформацію для формування QR code. У instrumentvalue буде рядок, з якого потрібно генерувати QR code.


Приклад: paymentInstrumentsTypes => instrumentType: "QrMasterpass"

{
   "instrumentType":"QrMasterpass",
   "commission":0.0,
   "amountMin":1.00,
   "amountMax":14999.00,
   "userPaymentInstruments":[
  	{
     	"instrumentId":8499910,
     	"instrumentType":"QrMasterpass",     	  "instrumentValue":"00020101021252040000530398054034005802UA5909EasyPayUa6004Kiev64190002UK0109EasyPayUa80850017ua.mastercard.www010200020840703434032003434180702054456177041211109354874205020181500017ua.mastercard.www011720191111093548742020499996223030443590603391070410036304AF79",
     	"alias":null,
     	"commission":0.0,
     	"loyaltyCommission":null,
     	"actionsKeys":null,
     	"priorityIndex":0,
     	"additionalParams":{
        	"OrderId":"4825209b-1caa-472e-b530-dc3e8efd541c"
     	}
  	}
   ]
}

Перевірка статусу QR code

Метод повертає інформацію про поточний статус QR code.

GET /api/payment/qrPaymentCheck


Request

headers
'PartnerKey: partnerName' 
'locale: ua'
'AppId: a5806a5f-dbb8-496a-a23f-aab6d2fcbce1'
'PageId: 2ce7dba6-4600-456e-b9c8-f13cacf1c85d'
'Sign: e0v1vIOMyNt2qSmrG5+sjAq8wOhvgDDUEyfVP21mRU4='

queryParams
“orderId”: “string”

Response

headers
----

body
{
  "status": "Generated",
  "transactionId": null,
  "error": null
}
Параметр Характеристика
status Можливі значення:
  • Generated
  • Scanned
  • PaymentStarted
  • PaymentFinished
  • None
transactionId ідентифікатор платежу в системі EasyPay.