|
4 | 4 | * Plugin URI: https://www.allsecpay.com
|
5 | 5 | * Author: AllSecure
|
6 | 6 | * Description: WooCommerce Plugin for accepting payments through AllSecure OPEN Platform.
|
7 |
| -* Version: 1.5.3 |
8 |
| -* Tested up to: 5.3 |
| 7 | +* Version: 1.6.0 |
| 8 | +* Tested up to: 5.3.6 |
9 | 9 | * WC requires at least: 3.0
|
10 |
| -* WC tested up to: 3.8.0 |
| 10 | +* WC tested up to: 4.9.1 |
11 | 11 | * @package AllSecure Open Woo
|
12 | 12 | */
|
13 | 13 |
|
14 | 14 | include_once( dirname( __FILE__ ) . '/includes/allsecure_additional.php' );
|
15 | 15 | add_action('plugins_loaded', 'init_woocommerce_allsecure', 0);
|
16 |
| -define( 'ALLSECURE_VERSION', '1.5.3' ); |
| 16 | +define( 'ALLSECURE_VERSION', '1.6.0' ); |
17 | 17 | /**
|
18 | 18 | * Init payment gateway
|
19 | 19 | */
|
@@ -302,11 +302,21 @@ public function generate_allsecure_payment_form( $order_id ){
|
302 | 302 | /* Required Order Details */
|
303 | 303 | $amount = $order->get_total();
|
304 | 304 | $currency = get_woocommerce_currency();
|
| 305 | + $billingcity = $order->get_billing_city(); |
| 306 | + $billingcountry = $order->get_billing_country(); |
| 307 | + $billingstreet1 = $order->get_billing_address_1(); |
| 308 | + $billingpostcode = $order->get_billing_postcode(); |
| 309 | + $customeremail = $order->get_billing_email(); |
305 | 310 | $url = $this->allsecure_url."/v1/checkouts";
|
306 | 311 | $data = "entityId=".$this->ENTITY_ID
|
307 | 312 | . "&amount=".$amount
|
308 | 313 | . "¤cy=".$currency
|
309 | 314 | . "&merchantTransactionId=". $order_id
|
| 315 | + . "&billing.city=". $billingcity |
| 316 | + . "&billing.country=". $billingcountry |
| 317 | + . "&billing.street1=". $billingstreet1 |
| 318 | + . "&billing.postcode=". $billingpostcode |
| 319 | + . "&customer.email=". $customeremail |
310 | 320 | . "&customParameters[MERCHANT_name]=".$this->merchantName
|
311 | 321 | . "&customParameters[MERCHANT_email]=".$this->merchantEmail
|
312 | 322 | . "&customParameters[MERCHANT_shopurl]=".$this->shopURL
|
|
0 commit comments