Skip to content

Commit ef9a4fd

Browse files
committed
adding extra data for 3ds2
1 parent 097dd06 commit ef9a4fd

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
Accept payments in your WooCommerce store using AllSecure **OPEN** Platform.
44

5-
Current version: 1.5.3
6-
Compatible with WooCommerce <= 4.1.0
5+
Current version: 1.6.0
6+
Compatible with WooCommerce <= 4.9.1
77

88
See a fully functional WooCommerce <a href="http://demo.allsecure.xyz/cart/open/woo" target="_new">demo store</a> with AllSecure **OPEN** as a payment gateway.
99

1010
## Version History
1111

12+
Version 1.6.0
13+
- adding extra data for 3ds2
14+
1215
Version 1.5.3
1316
- minor bug with banner logos
1417

allsecure_woo/allsecure_woo.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* Plugin URI: https://www.allsecpay.com
55
* Author: AllSecure
66
* 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
99
* WC requires at least: 3.0
10-
* WC tested up to: 3.8.0
10+
* WC tested up to: 4.9.1
1111
* @package AllSecure Open Woo
1212
*/
1313

1414
include_once( dirname( __FILE__ ) . '/includes/allsecure_additional.php' );
1515
add_action('plugins_loaded', 'init_woocommerce_allsecure', 0);
16-
define( 'ALLSECURE_VERSION', '1.5.3' );
16+
define( 'ALLSECURE_VERSION', '1.6.0' );
1717
/**
1818
* Init payment gateway
1919
*/
@@ -302,11 +302,21 @@ public function generate_allsecure_payment_form( $order_id ){
302302
/* Required Order Details */
303303
$amount = $order->get_total();
304304
$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();
305310
$url = $this->allsecure_url."/v1/checkouts";
306311
$data = "entityId=".$this->ENTITY_ID
307312
. "&amount=".$amount
308313
. "&currency=".$currency
309314
. "&merchantTransactionId=". $order_id
315+
. "&billing.city=". $billingcity
316+
. "&billing.country=". $billingcountry
317+
. "&billing.street1=". $billingstreet1
318+
. "&billing.postcode=". $billingpostcode
319+
. "&customer.email=". $customeremail
310320
. "&customParameters[MERCHANT_name]=".$this->merchantName
311321
. "&customParameters[MERCHANT_email]=".$this->merchantEmail
312322
. "&customParameters[MERCHANT_shopurl]=".$this->shopURL

0 commit comments

Comments
 (0)