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 și 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 />
      <contact_info>
         <billing type="company|person">
            <first_name>Prenume</first_name>
            <last_name>Nume</last_name>
            <country />
            <county />
            <city />
            <zip_code />
            <address />
            <email />
            <mobile_phone />
            <bank />
            <iban />
         </billing>
         <shipping type="company|person" sameasbilling="1">
            <first_name>Prenume</first_name>
            <last_name>Nume</last_name>
            <country />
            <county />
            <city />
            <zip_code />
            <address />
            <email />
            <mobile_phone />
            <bank />
            <iban />
         </shipping>
      </contact_info>
   </invoice>
   <params>
      <param>
         <name>param1Name</name>
         <value>param1Value</value>
      </param>
   </params>
</order>