• Resolved Alaa Rihan

    (@alaa-rihan)


    Can you add Intuit Payments/QBMS Gateway support? I tested it, it always charge the total as USD even the customer switched the currency, for example if the total was $100 in USD and the customer switched the currency to Canadian dollar then the number will be $132 CAD but when the customer pay via Intuit Payments/QBMS Gateway it charge $132 USD not CAD, maybe your plugin should convert the number to USD before charging or so I don’t know what the problem.

    this is the payment gateway I’m talking about:
    https://woocommerce.com/products/intuit-qbms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello
    Check option in plugin settings ->Options-Currency storage set transient

    Your base currency is USD.
    If you want, what would customers pay only the base currency in plugin settings ->Advanced-Is multiple allowed set No

    Intuit Payments/QBMS Gateway it charge $132 USD not CAD, maybe your plugin should convert the number to USD before charging
    – this is similar to what the plugin Intuit Payments/QBMS Gateway takes the price sooner than initialized WOOCS. To solve this problem you need customization code of Intuit Payments/QBMS Gateway

    Thread Starter Alaa Rihan

    (@alaa-rihan)

    I use multiple payment gateway like PayPal I want to allow customers to pay by CAD or USD as they want but Intuit Payments/QBMS Gateway only charge USD so I added this filter to a custom plugin:
    add_filter( ‘wc_payment_gateway_intuit_qbms_get_order_base’, ‘intuit_qbms_return_currency_to_usd’, 10, 1 );
    function intuit_qbms_return_currency_to_usd($order) {
    global $WOOCS;
    if ($WOOCS){
    $currencies = $WOOCS->get_currencies();
    $current_currency = $WOOCS->current_currency;
    $usd_total = $WOOCS->back_convert($order->get_total(),$currencies[$current_currency][‘rate’],2);
    $order->payment_total = number_format( $usd_total, 2, ‘.’, ” );
    }
    return $order;
    }

    this will convert total to USD before send to Intuit Payments/QBMS Gateway.

    The problem has been solved for me thank you.

    Hello

    Great! Thank you for cooperation!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Intuit Payments/QBMS Gateway Support’ is closed to new replies.