• Resolved 813kat

    (@813kat)


    Hi. I noticed the API is not passing the last name into iTransact when a payment is submitted.

    $card = new CardPayload(
    $order->billing_first_name,
    sanitize_text_field(str_replace(” “, “”,$_POST[‘wc_itransact-card-number’]) ),
    sanitize_text_field(str_replace(” “, “”,$_POST[‘wc_itransact-card-cvc’]) ),
    $exp_month,
    $exp_year
    );

    $address = new AddressPayload(
    $order->billing_address_1,
    $order->billing_address_2,
    $order->billing_city,
    $order->billing_state,
    $order->billing_postcode
    );

    $payload = new TransactionPayload(
    $pay_amount,
    $card,
    $address
    );

    I’ve tried to add $order->billing_last_name, but it results in an error. Can you offer an update that includes passing in the last name along with the first name? (right now, only the first name is reflected in the iTransact dashbaord).

Viewing 1 replies (of 1 total)
  • Plugin Author Outsource WordPress

    (@outsourcewordpress)

    Hi,

    Thanks for reporting and we have now added the Customer Last Name to the API. Please download the latest version and check.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Update to pass in Card Last Name’ is closed to new replies.