Top-up by Apple Pay

Top-up by Apple Pay allows your customers to top-up IBAN opened at ConnectPay by Apple Pay’s digital wallet.

Prerequisites:

Apple Pay top-up payments are settled instantly, you don’t need to wait as it is for commercial transactions.

Flow:

Integration can be split into two parts – merchant validation together with session creation and payment initiation.

if(window['ApplePaySession'] && ApplePaySession.canMakePayments("pass merchant id here"))

  • countryCode – LT;
  • currencyCode – selected currency, for now EUR only;
  • supportedNetworks – Visa, MasterCard
  • merchantCapabilities – supports3DS
  • label – your Platform name or what you want to show on the Apple pop-up;
  • amount – amount from the user’s selection.

var request = { countryCode: 'LT', currencyCode: 'EUR', supportedNetworks: ['visa', 'masterCard'], merchantCapabilities: ['supports3DS'], total: { label: 'Your Merchant Name', amount: '10.00' }, } var session = new ApplePaySession(3, request);
const request = {
        countryCode: 'LT',
        currencyCode: 'EUR',
        supportedNetworks: ['visa', 'masterCard'],
        merchantCapabilities: ['supports3DS'],
        total: { label: 'ConnectPay', amount },
      }
  const session = new ApplePaySession(3, request);
  session.begin();
  session.onvalidatemerchant = (event) => {
        const { validationURL } = event;
         // do the validation here
         // after receiving the session object from back end call 
         session.completeMerchantValidation(" by passing the object here");
  };
  1. We will complete merchant validation with Apple, create a session, and return the merchant session object. Don’t modify this object; you’ll need to use it for payment authorization flow.
session.onpaymentauthorized =  (event)=> {
        const token = event.payment.token;
        // handling the payment authorization 
}
  1. After payment is completed on Apple, you can decide what to do with the user journey – show a success/failure message or redirect to other page.

Top-up payments

Top-up by PIS

Payment details

Notifications

Scroll to Top