Plugin Directory

Changeset 2795682


Ignore:
Timestamp:
10/07/2022 02:02:23 PM (3 years ago)
Author:
odpsolutions
Message:

change into API parameter

Location:
sky-systemz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sky-systemz/tags/1.01/SkySystemz-woocommerceCheckout.php

    r2742765 r2795682  
    338338            $ccc_no = str_replace("-", "", $_POST['skysystemz_ccNo']);
    339339            $args = array(
    340                 "formcardnumber" => $ccc_no,
    341                 "formcvv" => sanitize_text_field($_POST['skysystemz_cvv']),
     340                "number" => $ccc_no,
     341                "cvv" => sanitize_text_field($_POST['skysystemz_cvv']),
    342342                "amount" => round($order->get_total() * 100),
    343343                "merchant_key" => $result->merchant_keys,
    344344                "orderId" => $order->get_id(),
    345345                "desc" => $titles,
    346                 "formexpiremonth" => sanitize_text_field($_POST['skysystemz_expdate_month']),
    347                 "formexpireyear" => sanitize_text_field($_POST['skysystemz_expdate_year']),
     346                "mm" => sanitize_text_field($_POST['skysystemz_expdate_month']),
     347                "yy" => sanitize_text_field($_POST['skysystemz_expdate_year']),
    348348                "card_holder_name" => sanitize_text_field($_POST['skysystemz_card_holder']),
    349349            );
  • sky-systemz/trunk/SkySystemz-woocommerceCheckout.php

    r2742765 r2795682  
    338338            $ccc_no = str_replace("-", "", $_POST['skysystemz_ccNo']);
    339339            $args = array(
    340                 "formcardnumber" => $ccc_no,
    341                 "formcvv" => sanitize_text_field($_POST['skysystemz_cvv']),
     340                "number" => $ccc_no,
     341                "cvv" => sanitize_text_field($_POST['skysystemz_cvv']),
    342342                "amount" => round($order->get_total() * 100),
    343343                "merchant_key" => $result->merchant_keys,
    344344                "orderId" => $order->get_id(),
    345345                "desc" => $titles,
    346                 "formexpiremonth" => sanitize_text_field($_POST['skysystemz_expdate_month']),
    347                 "formexpireyear" => sanitize_text_field($_POST['skysystemz_expdate_year']),
     346                "mm" => sanitize_text_field($_POST['skysystemz_expdate_month']),
     347                "yy" => sanitize_text_field($_POST['skysystemz_expdate_year']),
    348348                "card_holder_name" => sanitize_text_field($_POST['skysystemz_card_holder']),
    349349            );
Note: See TracChangeset for help on using the changeset viewer.