Update to pass in Card Last Name
-
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).
- The topic ‘Update to pass in Card Last Name’ is closed to new replies.