Orice plata prin sms 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" ?--> <!-- signature element is mandatory --> XXXX-XXXX-XXXX-XXXX-XXXX http://www.site_propriu.com/confirm http://www.site_propriu.com/return <!-- invoice element is mandatory ; currency attribute is mandatory (check for available values - at this moment only RON is available) ammount attribute is mandatory for order->type="card" if no invoice items are specified --> <!-- details element is optional - it describes the payment to be made --> </pre> <p style="text-align: justify;"> <p style="text-align: justify;"><!-- address block is optional for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant --> <contact_info> <!-- if billing is suplied type attribute is mandatory if type="company" deliver company name in <first_name>, fiscal numer in <fiscal_number> and registration number in <identity_number> if type="person" deliver personal number in <fiscal_number> and identity card number in <identity_number> for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant --> <first_name>Prenume <last_name>Nume <fiscal_number>cnp|cui <identity_number>ci|reg <!-- country - ISO code --> <zip_code></p> <address> </address> <p style="text-align: justify;"><mobile_phone></p> <p style="text-align: justify;"><!-- if shipping data is same as billing data set sameasbilling attribute to 1 if shipping data differs from billing data do set sameasbilling attribute at all values delivery has to be done in the same manner as for billing element --> <first_name>Prenume <last_name>Nume <fiscal_number>cnp|cui <identity_number>ci|reg <!-- country - ISO code --> <zip_code></p> <address> </address> <p style="text-align: justify;"><mobile_phone></p> <pre> <!-- params group is optional deliver as many parameters as you want all delivered parameters will be returned to you in payment confirmation process -->param1Nameparam1Value param2Name param2Value <!-- ....... --> paramnName paramnValue