Skip to main content
If you are using Android Components v5.0.0 or later: This payment method requires no additional configuration. Follow the Components integration guide and use the following module and Component names: A Bancontact card payment is like a regular card payment, except for the following:
  • There is no CVC. For co-badged cards, the CVC field can still appear.
  • 3D Secure authentication is mandatory.
  • Separate captures are not supported.
Our Component renders the Bancontact card in your payment form, and securely collects sensitive card information, so it doesn’t touch your server. When making a Bancontact card payment, you need to use the Redirect Component to handle the 3D Secure authentication.

Requirements

Show Bancontact card in your payment form

To show the Bancontact card in your payment form, you need to:
  1. Specify in your /paymentMethods request:
    • countryCode: BE
    • amount.currency: EUR.
  2. Deserialize the /paymentMethods response. Put the object with type: bcmc in a PaymentMethod object.
  3. Add the Bancontact card Component: a. Import the Card Component to your build.gradle file.
    For the latest version, refer to our GitHub. b. Create a BcmcConfiguration object, and pass your client key. You can also include optional configuration, for example to make the cardholder name required.
    c. Initialize the Bancontact card Component. Pass the following:
    • your context (for example, this@YourActivity)
    • the object from the /paymentMethods response (for example, paymentMethod)
    • the BcmcConfiguration object (for example, bcmcConfiguration)
    d. Add the Bancontact card Component view to your layout.
    e. Attach the Component to the view to start getting your shopper’s payment details.
    f. When shoppers enter their payment details, you start receiving updates. If isValid is true, and the shopper proceeds to pay, pass the paymentComponentState.data.paymentMethod to your server and make a payment request.

Make a payment

When the shopper proceeds to pay, the Component returns the paymentComponentState.data.paymentMethod.
  1. Pass the paymentComponentState.data to your server.
  2. From your server, make a /payments request, specifying:
    • paymentMethod: The paymentComponentState.data.paymentMethod from your client app.
    • channel: Android
    • returnURL: The URL where the shopper will be redirected back to after completing 3D Secure 1 authentication. Get this URL from Drop-in in the RedirectComponent.getReturnUrl(context).
The /payments response contains an action object with type: redirect. /payments response

Handle the redirect

Use the Redirect Component to redirect the shopper to complete the 3D Secure authentication. After the shopper returns to your app, make a POST /payments/details request from your server, providing:
  • details: The actionComponentData.details object from the Redirect Component.
/payments/details request
You receive a response containing:
  • resultCode: Use this to present the payment result to your shopper.
  • pspReference: Our unique identifier for the transaction.
/payments/details response

Present the payment result

Use the  resultCode from the /payments/details response to present the payment result to your shopper. You will also receive the outcome of the payment asynchronously in a webhook. For Bancontact card payments, you can receive the following resultCode values:

Recurring payments

Bancontact supports tokenization for recurring payments. We strongly recommend that you ask explicit permission from the shopper if you intend to make future recurring payments. You can use recurring transactions through the Bancontact Wallet Initiated Program (WIP).

Bancontact Wallet Initiated Program

The Bancontact Wallet Initiated Program (WIP) is a service that streamlines checkout and supports subscription-based billing. It offers the following:
  • Bancontact One-Click Pay to speed up checkout and boost conversion rates
  • Bancontact Recurring to support merchant-initiated recurring or subscription payments
You have to sign up to be able to use this service and not all companies are eligible to use Bancontact WIP. To enable Bancontact WIP, contact our Support Team. When you enable Bancontact WIP, transaction amount limits apply to ensure controlled and secure payments. Shoppers go through Strong Customer Authentication (SCA) one time when they complete their first transaction and give their consent. Subsequent transactions do not require SCA, which reduces friction and improves the checkout flow. Because the first transaction goes through SCA, there is no liability shift. The issuer remains liable.

Make a recurring payment

To make recurring payments, you need to:
  1. Create a shopper token.
  2. Use the token to make future payments for the shopper.
To test recurring payments, contact our Support Team to configure your test environment.

Create a token

To create a token, include in your /sessions or /payments request:
  • storePaymentMethod: true
  • shopperReference: Your unique identifier for the shopper (minimum length three characters).
When the payment has been settled, you receive a recurring.token.created webhook containing:
  • type: recurring.token.created
  • shopperReference: your unique identifier for the shopper.
  • eventId: The pspReference of the initial payment.
  • storedPaymentMethodId: This is the token that you need to make recurring payments for this shopper.
Make sure that your server is able to receive the Recurring tokens life cycle events webhook. You can set up this webhook in your Customer Area.

Make a payment with a token

To make a payment with the token, include in your /payments request:
  • paymentMethod.storedPaymentMethodId: The storedPaymentMethodId from the recurring.token.created webhook. You can also get this value by using the /listRecurringDetails endpoint.
  • shopperReference: The unique shopper identifier that you specified when creating the token.
  • shopperInteraction: ContAuth.
  • recurringProcessingModel: Subscription or UnscheduledCardOnFile.
For more information about the shopperInteraction and recurringProcessingModel fields, refer to Tokenization. The following example shows a recurring Subscription payment using WIP.

Test and go live

Before making live payments, use the following credentials to test your integration: 1 Depending on your payment method setup, transactions with this test card are routed to Bancontact or Visa. You can force a decline using these credentials with "holderName": "DECLINED".
This gets the following response:
You can check the status of test payments in your Customer Area > Transactions > Payments. Add Bancontact card in your live Customer Area.
  1. Configure the Component using the Client Encryption Public Key from your live Customer Area.

See also