Start a conversation

Care este structura unui request de plata prin card?

Orice plata prin card se initiaza printr-un POST catre https://secure.mobilpay.ro. Acest POST va contine intotdeauna doi parametri, data si  env_key 

- data – un parametru ce contine date criptate pe care va trebui sa le trimiti cand initiezi o plata. Datele vor fi mereu semnate cu un certificat public X509 pe care il primesti de la mobilPay atunci cand creezi un cont de comerciant.

- env_key – este plicul asociat cu cheia publica generat in momentul impachetarii datelor.

Parametrul data este compus dintr-o lista de informatii necesare mobilPay pentru procesarea platii, in format XML. Structura XML este urmatoarea

<?xml version="1.0" encoding="utf-8" ?>
<order type="card" id="string64" timestamp="YYYYmmddHHiiss">
<signature>XXXX-XXXX-XXXX-XXXX-XXXX</signature>
<url>
<confirm>http://www.site_propriu.com/return</confirm>
<return>http://www.site_propriu.com/confirm</return>
</url>
<invoice currency="XXX" amount="LL.BB">
<details></details>
<contact_info>
<billing type="company|person">
<first_name>Prenume</first_name>
<last_name>Nume</last_name>
<country></country>
<county></county>
<city></city>
<zip_code></zip_code>
<address></address>
<email></email>
<mobile_phone></mobile_phone>
<bank></bank>
<iban></iban>
</billing>
<shipping type="company|person" sameasbilling="1">
<first_name>Prenume</first_name>
<last_name>Nume</last_name>
<country></country>
<county></county>
<city></city>
<zip_code></zip_code>
<address></address>
<email></email>
<mobile_phone></mobile_phone>
<bank></bank>
<iban></iban>
</shipping>
</contact_info>
</invoice>
<params>
<param>
<name>param1Name</name>
<value>param1Value</value>
</param>
</params>
</order>
Choose files or drag and drop files
Was this article helpful?
Yes
No

Comments