MB Way

MB Way is a Portuguese application developed by SIBS and available for Android, iOS, Windows, Windows Phone and Tizen devices.

Currently, the MB Way application allows you to make instant money transfers between mobile phone numbers associated with MB Way, generate MB Net virtual cards for online purchases, pay for purchases in physical stores through mobile phone number, QR code and contactless, and use an ATM without having to use a bank card.

User Experience

The user experience of MB Way will depend on the integration type that the merchant has chosen:  Hosted Payment Page or API.

HOSTED PAGE

Once the user has chosen to pay with MB Way, you can use HPAYMENT API to create a Hosted Payment Page where the customer will introduce its phone number.

Once the user confirms the phone number, MB Way will send a message to that phone number to confirm the payment on the MB Way mobile APP.

You can personalize the styling of the Hosted Payment Page. More information here.

API INTEGRATION

With this integration, once the user chooses to pay with MB Way, the merchant will be in charge of displaying the phone field.

Once the user confirms the phone number, the merchant will need to make an ORDER API call. Once done, MB Way will send a message to that phone number to confirm the payment on the MB Way mobile APP.

Hosted Page Integration

To create a MB Way transaction on the HiPay Enterprise Payment Gateway, you must send, at least, these mandatory parameters in your HPAYMENT API call.

payment_product_list mbway

currency The only accepted currency is the euro. Ex. EUR

description Description of your order. Ex: Summer sales

orderid Unique order ID. Ex: Order_1232

amount Total order amount. Ex: 9.99

Endpoints

Stage: https://stage-secure-gateway.hipay-tpp.com/rest/v1/hpayment

Production: https://secure-gateway.hipay-tpp.com/rest/v1/hpayment

Make sure you have configured your HiPay account and the redirection urls before using the Hpayment API.

Important ! To have better insights of your payments you can leverage HiPay’s platform data management. To do so, we strongly recommend to send as much data as possible, as the basket and the customer information. Here you have all the parameters of the API.

Hpayment Reponse

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <forward_url>https://secure-gateway.hipay-tpp.com/0000-133-7621/payment/web/pay/f377ba63-d2de-46a0-9b5f-2db2e02c1afb</forward_url>
    <test>true</test>
    <mid>00001337621</mid>
    <cdata1>
        <![CDATA[]]>
    </cdata1>
    <cdata2>
        <![CDATA[]]>
    </cdata2>
    <cdata3>
        <![CDATA[]]>
    </cdata3>
    <cdata4>
        <![CDATA[]]>
    </cdata4>
    <cdata5>
        <![CDATA[]]>
    </cdata5>
    <cdata6>
        <![CDATA[]]>
    </cdata6>
    <cdata7>
        <![CDATA[]]>
    </cdata7>
    <cdata8>
        <![CDATA[]]>
    </cdata8>
    <cdata9>
        <![CDATA[]]>
    </cdata9>
    <cdata10>
        <![CDATA[]]>
    </cdata10>
    <order>
        <id>
            <![CDATA[1591716082]]>
        </id>
        <date_created>
            <![CDATA[2020-06-09T15:19:52+0000]]>
        </date_created>
        <attempts>
            <![CDATA[0]]>
        </attempts>
        <amount>
            <![CDATA[1.00]]>
        </amount>
        <shipping>
            <![CDATA[0.00]]>
        </shipping>
        <tax>
            <![CDATA[0.00]]>
        </tax>
        <decimals>
            <![CDATA[2]]>
        </decimals>
        <currency>
            <![CDATA[EUR]]>
        </currency>
        <customer_id>
            <![CDATA[]]>
        </customer_id>
        <language>
            <![CDATA[en_US]]>
        </language>
        <email>
            <![CDATA[]]>
        </email>
    </order>
</response>

API Integration

To create a MB Way transaction on the HiPay Enterprise Payment Gateway, you must send, at least, these mandatory parameters in your ORDER API call.

payment_product mbway

currency The only accepted currency is the euro. Ex. EUR

description Description of your order. Ex: Summer sales

orderid Unique order ID. Ex: Order_1232

amount Total order amount. Ex: 9.99

phone Customer’s phone number. Ex: 07 00 00 00 00

Endpoints

Stage: https://stage-secure-gateway.hipay-tpp.com/rest/v1/order

Production: https://secure-gateway.hipay-tpp.com/rest/v1/order

Make sure you have configured your HiPay account and the redirection urls before using the Order API.

Important ! To have better insights of your payments you can leverage HiPay’s platform data management. To do so, we strongly recommend to send as much data as possible, as the basket and the customer information. Here you have all the parameters of the API.

Order Reponse

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <state>pending</state>
    <reason/>
    <forward_url/>
    <test>true</test>
    <mid>00001337621</mid>
    <attempt_id>1</attempt_id>
    <authorization_code/>
    <transaction_reference>800043480714</transaction_reference>
    <date_created>2020-06-09T15:18:59+0000</date_created>
    <date_updated>2020-06-09T15:19:02+0000</date_updated>
    <date_authorized/>
    <status>142</status>
    <message>Authorization Requested</message>
    <authorized_amount>0.00</authorized_amount>
    <captured_amount>0.00</captured_amount>
    <refunded_amount>0.00</refunded_amount>
    <credited_amount>0.00</credited_amount>
    <decimals>2</decimals>
    <currency>EUR</currency>
    <ip_address>0.0.0.0</ip_address>
    <ip_country/>
    <device_id/>
    <cdata1>
        <![CDATA[]]>
    </cdata1>
    <cdata2>
        <![CDATA[]]>
    </cdata2>
    <cdata3>
        <![CDATA[]]>
    </cdata3>
    <cdata4>
        <![CDATA[]]>
    </cdata4>
    <cdata5>
        <![CDATA[]]>
    </cdata5>
    <cdata6>
        <![CDATA[]]>
    </cdata6>
    <cdata7>
        <![CDATA[]]>
    </cdata7>
    <cdata8>
        <![CDATA[]]>
    </cdata8>
    <cdata9>
        <![CDATA[]]>
    </cdata9>
    <cdata10>
        <![CDATA[]]>
    </cdata10>
    <avs_result/>
    <cvc_result/>
    <eci>7</eci>
    <payment_product>mbway</payment_product>
    <payment_method/>
    <three_d_secure/>
    <fraud_screening>
        <scoring>0</scoring>
        <result>ACCEPTED</result>
        <review/>
    </fraud_screening>
    <order>
        <id>
            <![CDATA[1591716029]]>
        </id>
        <date_created>
            <![CDATA[2020-06-09T15:18:59+0000]]>
        </date_created>
        <attempts>
            <![CDATA[1]]>
        </attempts>
        <amount>
            <![CDATA[1.00]]>
        </amount>
        <shipping>
            <![CDATA[0.00]]>
        </shipping>
        <tax>
            <![CDATA[0.00]]>
        </tax>
        <decimals>
            <![CDATA[2]]>
        </decimals>
        <currency>
            <![CDATA[EUR]]>
        </currency>
        <customer_id>
            <![CDATA[]]>
        </customer_id>
        <language>
            <![CDATA[en_US]]>
        </language>
        <email>
            <![CDATA[]]>
        </email>
    </order>
    <debit_agreement>
        <id/>
        <status/>
    </debit_agreement>
</response>

Refunds

Refunds are possible using MB Way. In order to integrate this functionality, please read the refund documentation.