My Oracle Support Banner

Questions about PayPal Integration with OCC (Doc ID 2595227.1)

Last updated on DECEMBER 07, 2022

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

1. When a user reaches the OCC payment page and press the PayPal Checkout button, they are redirected to PayPal page to enter credentials and complete payment. In this PayPal page there is a cart icon, when you press it, you only can see a pop up with a text message. Is there an OOTB way to display the cart items on this page?

The cart items are not sent to PayPal due to a limitation in the PayPal API at the time of implementation. In order to send cart items the PayPal API requires the unit price and quantity, and will recalculate the order total and validate it against the order total/amount passed to the API for the payment amount. This is fine in simple cases but is far too simplistic when it comes to the range of promotions and discounts and how those are modeled in Oracle Commerce Cloud. PayPal in these cases could not accurately recalculate the order total and would therefore return an error. We found far too many use cases were the PayPal API rejected the payment. The only solution is to send the just the amount with no items. The items are optional.

2. Once we are in the PayPal page, and the purchase is completed, the user is redirected to the OCC payment page. Once in the payment page, the user have to press the "Complete Order" button to complete the order. This is a bad customer experience and it is undesirable to our client. Is there an OOTB way to redirect from payPal page directly to OCC confirmation page?

PayPal Express Checkout recommends that the shopper must give final confirmation on return from Paypal to the shopping site. At this point the shopper has given payment authorization but the final step is to "execute the payment" which is performed during final order submission in OCC. Only when the payment is executed will it be fully authorized.Some customers have customized the checkout to automatically submit the order on return from PayPal but the viability of this will depend on the full checkout design. In cases where the shipping address is selected in Paypal, then the shopper may need to select their shipping method and reprice the order before the order is finally placed. Where this is selected before going to PayPal then there is potential to automatically submit the order when returning from PayPal and then redirecting to confirmation without shopper intervention. This would require customization.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.