Top-up by PIS

To start using ConnectPay’s Payment initiation service to top-up your customers accounts, follow these steps:

  1. Initiate a top-up payment API request to baas/merchant/topup/pis/payments following example below from our API reference: Initiate top-up by PIS API
  2. If request was successful, you will receive response with http code 201 and paymentId and redirectUrl in response body. You have to redirect your customer to redirectUrl to authorize a payment within their provider (bank). Save paymentId for further status check. Response example below:
{
  "merchant": {
  },
  "payment": {
    "paymentId": "5e864dad-4f10-4b91-bf3f-b8d0c9819d3a",
    "redirectUrl": "https://pay-stage.connectpay.com?key=8c36b04b-fd6e-4442-b837-a3dcafcfc5ff"
  },

  1. After your consumer is done with payment journey (authorizes a payment in their bank environment), bank will redirect consumer to our result page (Failed, In progress or Success) from which we have auto-redirection to your environment. We redirect consumer to your redirectUrl provided in Initiate top-up API request.
  2. Sometimes, provider may not respond immediately with the final payment status information. In such cases, we will periodically check at Provider for final status and update payment information. Same way, you should periodically check payment status using Get payment details API . Or you can subscribe to our payment status notification events and wait for status change notification.

For testing only. When testing requests in stage environment, please note that not all providers support frontend. We recommend selecting these details while testing:

1. For FI country and PIS method – Test Bank, provider ID 03a4effd-d047-4c3e-ab95-1b4fb198b64f
2. For LT country and PIS method – Siauliu bankas, provider ID a7640cb7-4dec-4a44-a9ad-b918c803254e
3. For CARD payment method, use card No 4242424242424242 for success result and No 4539467987109256 for failed result.

You can see full sequence diagram below:

After authorization within their bank or issuer, Consumer will be redirected back to widget and will be presented with payment status information. All commercial transactions require SCA for payments or 3DS authorization for card-related payments. Exemptions might be applied by Consumer’s bank or Issuer.

  • When sending creditor account, make sure it’s active and belongs to consumer you’ve onboarded;
  • Delivery of a payment might be different (not all providers support SEPA INST), please check providers and schemes they support here.

Top-up payments

Top-up by Apple Pay

Payment details

Notifications

Scroll to Top