Viewing 7 replies - 1 through 7 (of 7 total)
  • You should contact woothemes support at https://support.woothemes.com/hc/en-us this is a paid plugin

    Thread Starter khuss

    (@khuss)

    The Amazon Payment is a free plugin and they are saying this issue is caused by a problem in the “woocommerce-pay-for-payment” plugin.

    Here is the reply I got from woothemes:

    (https://cld.wthms.co/pcNh/3RBH9tvl)

    The above code iss likely causing an error when it loops through and gets to the Amazon gateway(it doesn’t use the Checkout page in the same way as other payment methods, perhaps he should start there). Because of this apparent error, it doesn’t include the Amazon Payments Advanced gateway in the array when it updates the WooCommerce payment gateways list.

    Thread Starter khuss

    (@khuss)

    Here is the actual code snippet that is causing the problem:

    class-pay4pay-admin.php:

    `foreach ( $defaults as $option_key => $default_value )
    if ( array_key_exists( $option_key, $form_fields ) )
    $form_fields[$option_key][‘default’] = $default_value;

    foreach ( WC()->payment_gateways()->payment_gateways() as $gateway_id => $gateway ) {
    $form_fields[‘pay4pay_item_title’][‘default’] = $gateway->title;
    $gateway->form_fields += $form_fields;
    add_action( ‘woocommerce_update_options_payment_gateways_’.$gateway->id , array($this,’update_payment_options’) , 20 );
    }

    Please replace

    add_action( 'woocommerce_init' , array( &$this , 'add_payment_options'), 99 );

    with

    add_action( 'wp_loaded' , array( &$this , 'add_payment_options'), 99 );

    as seen here
    https://github.com/mcguffin/woocommerce-payforpayment/blob/master/admin/class-pay4pay-admin.php

    This plugin does not support non-default WooCommerce payment methods. Could this fix be implemented please?

    We have the same issue with https://www.ads-software.com/plugins/mollie-payments-for-woocommerce/

    Can you tell me when the plugin loads in order to use a later loading time?

    I found the problem. After the last update the plugin was not uploaded properly to WordPress Repository. I will ask the author to reupload it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Doesn't work with Amazon Payments’ is closed to new replies.