• Resolved ekliptor

    (@ekliptor)


    Hi,
    I am using the Express Payment button on [ Redundant like redacted ]

    When a user clicks on the “Paypal Buy Now” button, the plugin ends with an error when returing from paypal. The error says undefined index address, postcode,…
    See this screenshot for an example: https://ibb.co/cThdip

    I know I can disable WP error messages to circument this and then your plugin will (probably) work, but a proper fix on your side would be nice.

    Cheers,
    Ekliptor

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    When a user clicks on the “Paypal Buy Now” button, the plugin ends with an error when returing from paypal. The error says undefined index address, postcode,

    This sounds like there is a conflict between either your theme or another plugin.
    If you change themes to Storefront or Twenty Seventeen and disable all but WooCommerce and PayPal Express does the issue still occur? If it does please let us know, otherwise you can then switch your theme back, and re-activate each of your plugins until the issue shows itself to find out. Please keep us in the loop with the troubleshooting!

    Thread Starter ekliptor

    (@ekliptor)

    I am already using the Twenty Seventeen theme for the blog and the Storefront theme for the shop.

    Also it works perfectly fine when I turn off debug notices on my WP.
    So I think a simple check if the user (or Paypal has provided a shipping address should be enough):
    if (isset($shipping_details['address_1'])) $customer->set_shipping_address( $shipping_details['address_1'] );

    Since my shop sells a software subscription the users usually don’t have a shipping address in their profile (only billing address) and thus the PHP warning is common.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error during express checkout button’ is closed to new replies.