This has been prompted by the deprecation of PayPal WPS, WPP and EC. See this issue.
This feature should use Backdrop's commerce_paypal_checkout as a model. That module includes a light weight PHP library to authenticate, and uses PayPal Smart Button SDK to inject the checkout buttons in the last step.
I'm providing a first PR here. While basic checkout works, the PR does not yet work if you have UC Shipping enabled. I haven't yet tested with taxes either. This PR differs in some substantial ways from commerce_paypal_checkout since Ubercart does not allow for the addition of checkout pages. Therefore, this PR injects the buttons in the Review stage, and hides the form "Submit order" button, since the submission happens when the customer uses a smart button to complete the payment.
To test, create an App in your PayPal developer sandbox, and make a note of the Client ID and Secret. Then go to Ubercart's Store > Configuration > Payment methods, enable PayPal Checkout and enter the Client ID and secret.
At this point, I have only tested "Capture" transaction types, no "Authorize". Also the PayPal address collection is not yet enabled.
Please test. You can get some testing fake cc numbers here.
This has been prompted by the deprecation of PayPal WPS, WPP and EC. See this issue.
This feature should use Backdrop's
commerce_paypal_checkoutas a model. That module includes a light weight PHP library to authenticate, and uses PayPal Smart Button SDK to inject the checkout buttons in the last step.I'm providing a first PR here. While basic checkout works, the PR does not yet work if you have UC Shipping enabled. I haven't yet tested with taxes either. This PR differs in some substantial ways from
commerce_paypal_checkoutsince Ubercart does not allow for the addition of checkout pages. Therefore, this PR injects the buttons in the Review stage, and hides the form "Submit order" button, since the submission happens when the customer uses a smart button to complete the payment.To test, create an App in your PayPal developer sandbox, and make a note of the Client ID and Secret. Then go to Ubercart's Store > Configuration > Payment methods, enable PayPal Checkout and enter the Client ID and secret.
At this point, I have only tested "Capture" transaction types, no "Authorize". Also the PayPal address collection is not yet enabled.
Please test. You can get some testing fake cc numbers here.