• Resolved eltoucano

    (@eltoucano)


    When using the plugin in Stripe Test mode, the Afterpay link will not show on checkout. It will however show on Product and Cart.

    This seems to be because the validate_local_payment_available() function returns an empty value for $account_country = stripe_wc()->account_settings->get_option( ‘country’ );

    When forcing eligibility to TRUE in the wc_stripe_local_payment_available filter we can get the link to show on checkout.

    Is this behaviour by design? Enabling Afterpay for test mode is obviously important for testing!

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

    (@mrclayton)

    Hi @eltoucano,

    Thanks for contacting us. The country value in the account settings is provided during the Connect process. Afterpay has limitations on what countries it can be displayed for so this value is used for that.

    It sounds like you manually entered your API keys for test mode so that’s why that value is blank. We can take a look at altering that for test mode when API keys are manually entered.

    This wouldn’t happen in live mode since the country value in the account settings would be populated.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @eltoucano,

    The code has been reviewed and in the next release, if the country value is empty then the WooCommerce store’s country value will be used to ensure Afterpay shows.

    Feel free to reach out to us via our Help button in the plugin settings if you want to test.

    Kind Regards,

    Thread Starter eltoucano

    (@eltoucano)

    Great response. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Afterpay (Clearpay) Not Displaying in Stripe Test Mode’ is closed to new replies.