• Resolved cnick

    (@cnick)


    Hi,

    I’m using elementor. Is there a way to add express paypal buttons on product page via shortcode?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    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 7 months ago by cnick.
    Plugin Author Payment Plugins

    (@mrclayton)

    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

    Plugin Author Payment Plugins

    (@mrclayton)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add via shortcode’ is closed to new replies.