Hi @cnick
Yes, you can use shortcode [ppcp_product_buttons] to render the express PayPal buttons.
We are working on updating the documentation site so there are examples of the available shortcodes.
Kind Regards,
Thread Starter
cnick
(@cnick)
I added the shortcode and the button is also showing up but its not working. After clicking buy now button, paypal popup is seen for a second, then it closes and the page is scrolled to the top.
In chrome’s browser console I’m getting following error
click_initiate_payment_reject
{err: 'Error: Expected an order id to be passed\
In logs i’m getting
Error creating PayPal order. Msg: Must be greater than zero. If the currency supports decimals, only two decimal place precision is supported. Params: Array
....
[value] => 0.00.
....
The value is 0 instead of 39
I’m using elementor pro.
Please help. Thanks
-
This reply was modified 2 years, 1 month ago by
cnick.
The value is 0 instead of 39
I’m using elementor pro.
The plugin is coded to take the value directly from the WooCommerce shopping cart so it seems your issue is unrelated to the PayPal plugin. Your shopping cart seems to be returning $0.
Can you provide the full error log entry?
Thanks
Thread Starter
cnick
(@cnick)
Please check this log entry:
https://pastebin.com/5DfwsYck
Thanks
Hi @cnick
I can see from the error log that the WooCommerce cart total is returning $0 which is not correct. This is not a PayPal plugin issue since the plugin uses the total provided by the WooCommerce cart.
You likely have some 3rd party plugin installed that’s causing the cart’s total to be $0.
Kind Regards