• Good day!

    I am trying to programmatically charge payments for orders using WooCommerce First Data Payeezy Gateway plugin:

    1) Get all available payment gateways

    
    $available_gateways = WC()->payment_gateways->get_available_payment_gateways();
    

    2) Select Payeezy gateway

    
    $payeezy = $available_gateways['first_data_payeezy_gateway_credit_card'];
    

    3) Get order with Payeezy gateway specific info

    
    $order = $payeezy->get_order($order_id);
    

    4) Get Payeezy gateway API

    
    $payeezy_api = $payeezy->get_api();
    

    5) Charge payment for order

    
    $charge = $payeezy_api->credit_card_charge($order);
    

    But it returns me following:

    
    SV_WC_API_Exception: HTTP 400 Bad Request: Bad Request (22) - Invalid Credit Card Number
    

    Seems like the order I get in step 3 doesn’t contain all the details for the transaction.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with WooCommerce First Data Payeezy Gateway.’ is closed to new replies.