Plugin Directory

Changeset 2276445


Ignore:
Timestamp:
04/05/2020 03:38:14 PM (6 years ago)
Author:
spektrainc
Message:

update on prefilling customer details from billing address

Location:
spektra/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • spektra/trunk/readme.txt

    r2238122 r2276445  
    44Tags: payments, checkout
    55Requires at least: 4.6
    6 Tested up to: 5.3
     6Tested up to: 5.4
    77Stable tag: 1.0
    88Requires PHP: 5.2
     
    6565* Updated checkout
    6666
     67= 1.0.3 =
     68Prefill customer data from billing details
     69
    6770== Upgrade Notice ==
    6871
     
    7275= 1.0.1 =
    7376Update checkout page
     77
     78= 1.0.3 =
     79Prefill customer data from billing details
    7480
    7581
  • spektra/trunk/spektra-wc-gatway.php

    r2177299 r2276445  
    77 * Author URI: https://spektra.co
    88 * Version: 1.0.1
     9 * WC tested up to: 4.0.1
    910 *
    1011 * /*
     
    246247                $order_description = implode(', ', $order_array);
    247248               
    248 
    249249                $postdata ="{
    250250                    \"amount\":\"{$order->get_total()}\",
    251251                    \"currency\":\"{$order->get_currency()}\",
     252                    \"customerData\": {
     253                        \"firstName\":\"{$order->get_billing_first_name()}\",
     254                        \"lastName\":\"{$order->get_billing_last_name()}\",
     255                        \"phone\":\"{$order->get_billing_phone()}\"
     256                    },
    252257                    \"description\":\"{$order_description}\",
    253258                    \"successURL\":\"{$successUrl}\",
    254259                    \"cancelURL\":\"{$cancelUrl}\"
    255260                }";
    256                 $chekout = $this->get_checkout_id($token->access_token,$postdata);
     261                $chekout = $this->get_checkout_id($token->access_token, $postdata);
    257262                if($chekout->checkoutID)
    258263                {
Note: See TracChangeset for help on using the changeset viewer.