Configuring BNP Paribas
Learn how to configure BNP Paribas for DigitalRiver.js with Elements.
Last updated
Learn how to configure BNP Paribas for DigitalRiver.js with Elements.
Last updated
Integrating BNP Paribas as a payment method into your application or website can enhance your customers' payment options significantly, catering to those who prefer this specific bank for transactions. This guide outlines setting up BNP Paribas payments using DigitalRiver.js with Elements. By following the straightforward steps laid out below, you will be able to build and authorize a BNP Paribas payment source effortlessly. Whether you want to expand your payment methods or provide a more localized payment experience, this setup will ensure a smooth integration process.
If you're using , you can create a payment method for your app or website in four easy steps:
See the for additional information.
To build the BNP Paribas Source Request and Details object, follow these steps:
Create the BNP Paribas Source Request object with the necessary fields:
type
Specify this as bnpParibas
to indicate the payment method type
sessionId
Include the payment session identifier, which is crucial for transaction tracking.
owner
bnpParibas
Define the BNP Paribas Source Details object with additional parameters as needed for the transaction. This object structure and required fields will depend on BNP Paribas's specifications and any additional payment processing requirements.
The BNP Paribas Source Details object is crucial for processing payments with BNP Paribas. It includes several key parameters:
returnUrl
: This is the URL to which customers are redirected after they authorize the payment within the BNP Paribas payment interface. It's essential for the redirect flow.
cancelUrl
: This is the URL where customers are redirected if they decide to cancel the payment within the BNP Paribas system. It's also necessary for the redirect flow.
termCodeId
: Represents a unique identifier for the payment terms, such as duration, interest rate, and other conditions. It's important to use the correct termCodeId as specified by BNP Paribas.
Example JSON structure:
This object ensures that payments are processed correctly and provides a smooth experience for users by facilitating seamless redirection after transactions.
A BNP Paribas source is a structured data object that specifies the necessary parameters for processing payments through BNP Paribas. It contains crucial URLs for redirection (returnUrl
and cancelUrl
) upon authorizing or canceling the payment within the BNP Paribas payment experience, as well as termCodeId
, which represents the terms under which the payment is made. This setup is necessary to initiate a payment process with BNP Paribas, ensuring transactions are processed under the correct terms and providing a seamless user experience.
Use the DigitalRiver.js library to create and mount elements to the HTML container.
To authorize the BNP Paribas source, you must redirect the customer to their payment provider using the redirectUrl
obtained from the createSource
response. Here's how you can direct the customer for authorization:
The customer can then authorize or cancel the transaction at the BNP Paribas payment page. If authorization is successful, the customer will be redirected back to your website using the returnUrl
you specified. If the transaction is canceled, they will be redirected back using the cancelUrl
.
Once the customer has authorized the transaction at BNP Paribas, you can proceed with the payment process. Here's how you attach the authorized source to a checkout for finalizing the payment:
Retrieve the authorized source ID from the return URL parameters.
Replace {customer_id}
with your actual customer's ID and {authorized_source_id}
with the source ID you've received upon successful authorization.
Following these steps, you finalize the payment transaction, leveraging the authorized source.
Replace your_customer_id
with your test customer's ID.
Replace authorized_source_id
with the source ID you've received upon successful authorization.
Incorporate an that contains the details about the payment source's owner.
Embed a with specific information about the BNP Pariba payment.
The address
object must contain and data that .
for a customer by using the following payload in your charge request:
To test BNP Paribas payment transactions, follow the guidelines outlined in the section. This includes simulating various scenarios to ensure the payment process works smoothly under different conditions. It's crucial to replace placeholders in your request with actual values: