Hosted Elements Integration

Make your first payment using Hosted Elements integration

Pre-requirements:

Before following the steps to create your first payment, make sure that:

  • Your have an access to your (Sandbox) Merchant Account
  • You have generated your API keys
  • You have at least one merchant contract activated with at least one payment method added

Hosted Elements Setup

To use hosted elements integration, please make sure to have followed the setup guide. After it's done, you can continue following the below steps.

Test your integration

Once your integration is ready, it is crucial to perform tests in order to see if it works as expected but also to go through the customer experience.

Use your (test) website into which you have integrated our hosted elements into your payment form.

  1. On your website, when you proceed to payment page, your integration creates a checkout by calling our create checkout endpoint.

    During that step, checkout_id is received in the response. The checkout_id should be used in JS instance for Hosted Elements configuration.

  2. Your payment page will be displayed with our hosted elements populated from the SDK.

  3. Fill in the payment details: card holder name, card number, card expiration date and CVV code. In case other additional field are used (eg. CIN number, ZIP code), fill them in as well.

    You can use our test cards. If you need to test a specific scenario with a certain PSP, sometimes it could be useful or needed to use PSP-specific test cards.

Payment page example: hosted elements

  1. Submit your payment by clicking the payment button.

    When you submit the payment, the tokenization takes place. The token is received in the response to the request we make. Your integration catches the token to use it for the create order request.

  2. Your integration creates the order by calling our create order endpoint including the token received in the previous step as well as the checkout_id.
  3. If 3DS: For 3D Secure payments, you will be redirected to the url for performing 3DS authentication.

    If the payment is initiated with 3DS specified in your create order request, you will receive the redirect_url in the response. Your integration should use this url to redirect the customer to.

  4. Based on the payment result, you are redirected to the respective url (accept_url, decline_url). If you cancelled the payment before proceeding, you will be redirected to cancel_url. These urls are handled by you.

Check your payment status

Once you have proceeded with the payment, you can check its status in your Merchant Account.

To do so, please navigate as follows:

  1. Log into your Merchant Account
  2. On the left hand-side bar in section Brainpower select Orders
  3. You will see all your orders for the selected period of time (set to Current month by default) with the most recent one a the top.