Configuring PayPal
Learn how to configure PayPal for DigitalRiver.js with Elements.
Last updated
Learn how to configure PayPal for DigitalRiver.js with Elements.
Last updated
PayPal offers the following payment methods: , , , , , and .
PayPal is a payment service that facilitates payments between parties through online funds transfers. On its website, PayPal allows customers to establish an account connected to a user's credit card or checking account.
You can find an example of integration .
If you're using , you can create a payment method for your app or website in four easy steps:
Build the PayPal objects.
A PayPal source request object requires the following fields.
type
payPal
sessionId
The payment session identifier.
payPal
returnUrl
Required
If you choose to utilize the full redirect flow, this is where you will redirect your customer to after authorizing within the PayPal experience.
cancelUrl
Required
If you choose to utilize the full redirect flow, this is where you will redirect your customer to after canceling within the PayPal experience.
requestShipping
Optional
If true
, PayPal provides a shipping selection for the customer on the PayPal portal. Set this value to true for sessions with physical items. If false
or omitted, no shipping selection will be shown.
Use the DigitalRiver.js library to create and mount elements to the HTML container.
When you create a PayPal source, the customer is required to authorize the charge at PayPal. You can accomplish this by either redirecting the customer to PayPal or using the PayPal SDK to authorize the charge as part of your experience.
To redirect your customer to PayPal for authorization, use the redirectUrl
parameter in your createSource response.
At PayPal, the customer can authorize or cancel the transaction when presented with the transaction details. If the authorization is successful, the customer will be redirected to the PayPal Return URL parameter you specified when you created the source. If the customer cancels, they will be returned to the PayPal Cancel URL parameter you specified.
Use the PayPal Checkout SDK to streamline the authorizing PayPal transactions. This will allow you to control things like the appearance of the PayPal button and embed the entire experience into your workflow.
Example:
Include the PayPal Checkout SDK on your page and specify a location where the button will appear.
Attach the source to a checkout
The PayPal billing agreement allows consumers to use their PayPal account to make recurring payments when they purchase a subscription product by clicking the PayPal button. Consumers can choose to auto-renew or manually renew.
Currency supported: All currencies available in supported countries.
Create a PayPal billing agreement payment method for your app or website in four easy steps:
A PayPal billing agreement source request object requires the following fields.
type
payPalBilling
sessionId
The payment session identifier. The checkout flow requires this field, so do not define it in the account management flow.
owner
The customer's billing information. This field is required in the account management flow as there won't be a sessionId
.
payPalBilling
In this step, you can integrate and use the DigitalRiver.js library to facilitate the creation of a PayPal Billing Agreement source. This process involves configuring and mounting the necessary elements into your webpage for both checkout and account management flows. By following the provided code examples, you can seamlessly connect the billing agreement flow to your backend systems, ensuring a smooth and efficient payment process.
When you create a PayPal Billing Agreement source, the customer is required to authorize the charge through PayPal. You can accomplish this by either redirecting the customer to PayPal or using the PayPal SDK to authorize the charge as part of your experience.
To redirect your customer to PayPal for authorization, use the redirectUrl
parameter in your createSource
response.
PayPal will present the customer with the transaction details where they can authorize, or cancel the transaction. A successful authorization redirects the customer to the PayPal Return URL parameter you specified when you created the source. If the customer cancels, they will return to the PayPal Cancel URL parameter you specified when you created the source.
Use the PayPal Checkout SDK to streamline the authorizing PayPal transactions. This will allow you to control things like the appearance of the PayPal button and embed the entire experience into your workflow.
Example:
Include the PayPal Checkout SDK on your page and specify a location where the button will appear.
Use the PayPal SDK to customize and place the PayPal button on your page. The PayPal SDK returns two functions, onAuthorize
and onCancel
. If the payment was authorized, attach the source you created earlier to a shopper or customer.
PayPal Pay in 3 is a short-term card installment payment option automatically provided by PayPal Express Checkout Wallet when a customer signs in to PayPal Checkout. Presents within the PayPal wallet on a category known as "Pay Later". Note that PayPal Pay in 3 does not support recurring subscriptions. Presenting this payment method in the PayPal Express Checkout Wallet requires no additional setup. If the shopper's purchase history along with the items in checkout qualify, PayPal Pay in 3 will be available as a payment method.
PayPal Pay in 3 allows shoppers to pay for physical good purchases as follows:
United Kingdom: three interest-free monthly payments for purchases between £45 and £2,000, with the first payment due at checkout.
PayPal Pay in 4 is a pay-later option dynamically available through PayPal Express Checkout Wallet. It is presented within the PayPal wallet under a category known as "Pay Later." Note that PayPal Pay in 4 does not support recurring subscriptions. Presenting this payment method in the PayPal Express Checkout Wallet requires no additional setup. If the shopper's purchase history and the items in checkout qualify, PayPal Pay in 4 will be available as a payment method.
PayPal Pay in 4 allows shoppers to pay for physical good purchases as follows:
France: Four interest-free monthly payments for purchases between €30 and €2,000, with the first payment due at checkout.
United States: Four interest-free biweekly payments for purchases between $30 and $600, with the first payment due at checkout.
Australia: Four interest-free biweekly payments for purchases between AUD $50 and $1,500, with the first payment due at checkout.
PayPal RatenZahlung is a pay-later option available through PayPal Express Checkout Wallet. It is presented within the PayPal wallet in a category known as "Pay Later." Note that PayPal RatenZahlung does not support recurring subscriptions. Presenting this payment method in the PayPal Express Checkout Wallet requires no additional setup. If the shopper's purchase history and the items in the checkout qualify, PayPal RatenZahlung will be available as a payment method. PayPal RatenZahlung allows shoppers to pay for physical good purchases as follows:
Germany: The shopper selects three, six, twelve, or twenty-four monthly payments with an interest rate of 9.99% for purchases between €99 and €5,000, with the first payment due at checkout.
Additional setup required: If you want to use PayPal Credit, contact your Account Manager. After you sign the client addendum, the Account Manager will send instructions for setting up PayPal Credit banners.
PayPal Credit allows consumers to buy online and pay later for their products. This payment method is accepted in thousands of online stores and is available everywhere PayPal is accepted (as long as the PayPal Credit and PayPal accounts are linked). PayPal Credit uses the date of birth and last 4 digits of SSN to approve or deny a consumer for a line of credit, and the applicant will be notified within seconds whether they have been approved or not.
Create a PayPal payment method for your app or website in four easy steps:
A PayPal billing credit source request object requires the following fields.
type
payPalCredit
sessionId
The payment session identifier.
payPalCredit
Use the DigitalRiver.js library to create and mount elements to the HTML container.
When you create a PayPal Credit source, the customer must authorize the charge at PayPal. You can accomplish this by either redirecting the customer to PayPal or using the PayPal SDK to authorize the charge as part of your experience.
Redirecting the customer to PayPal for authorization
To redirect your customer to PayPal for authorization, use the redirectUrl
parameter in your createSource
response.
PayPal will present the customer with the transaction details where they can authorize or cancel the transaction. A successful authorization redirects the customer to the PayPal Return URL parameter you specified when you created the source. If the customer cancels, they will return to the PayPal Cancel URL parameter you specified when you created the source.
Use the PayPal Checkout SDK to streamline the authorizing PayPal transactions. This will allow you to control things like the appearance of the PayPal button and embed the entire experience into your workflow.
Example:
Include the PayPal Checkout SDK on your page and specify a location where the button will appear.
Include the PayPal Checkout SDK on your page and specify a location where the button will appear.
A that includes the details of the transaction.
The address
object must contain and data that .
The PayPal SDK guide is located here:
More details on how you can customize the PayPal button are located here:
Use the PayPal SDK to customize and place the PayPal button on your page. The PayPal SDK returns two functions, onAuthorize
and onCancel
. If the payment was authorized, .
Once authorized, you can use the source by .
See for testing instructions.
You can find an example of the integration .
A that includes the details of the transaction.
See for a description of the payPalBilling object's required fields
The address
object must contain and data that .
The PayPal SDK guide is located here:
More details on how you can customize the PayPal button are located here:
Once authorized, you can use the source by or for multiple uses.
See for testing instructions.
Additional setup optional: If you want to promote Pay in 3, contact your Customer Success Representative. The Representative will provide the set-up instructions for Pay in 3 banners. Click to access the upstream promotional banners.
Additional setup optional: If you want to promote Pay in 4, contact your Customer Success Representative. The Representative will provide the set-up instructions for Pay in 4 banners. Click to access the upstream promotional banners.
A that includes the details of the transaction.
See for a description of the payPalBilling object's required fields
The address
object must contain and data that .
The PayPal SDK guide is located here:
For more details on how you can customize the PayPal button, go to
Use the PayPal SDK to customize and place the PayPal button on your page. The PayPal SDK returns two functions, onAuthorize
and onCancel
. If the payment was authorized, attach the source you created earlier .
Use the PayPal SDK to customize and place the PayPal button on your page. The PayPal SDK returns two functions, onAuthorize
and onCancel
. If the payment was authorized, attach the source you created earlier .
Once authorized, you can use the source by .
See for testing instructions.