-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/5669 add further payment metadata (#7091)
Co-authored-by: Radoslav Georgiev <[email protected]>
- Loading branch information
1 parent
6b10aec
commit 8ea5c5f
Showing
6 changed files
with
109 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: add | ||
|
||
Added additional meta data to payment requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,13 +374,17 @@ public function test_update_payment_intent_adds_customer_save_payment_and_level3 | |
->method( 'set_metadata' ) | ||
->with( | ||
[ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
] | ||
); | ||
|
||
|
@@ -472,13 +476,17 @@ public function test_update_payment_intent_with_selected_upe_payment_method() { | |
->method( 'set_metadata' ) | ||
->with( | ||
[ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
] | ||
); | ||
|
||
|
@@ -566,13 +574,17 @@ public function test_update_payment_intent_with_payment_country() { | |
->method( 'set_metadata' ) | ||
->with( | ||
[ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
] | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -408,13 +408,17 @@ public function test_update_payment_intent_adds_customer_save_payment_and_level3 | |
->method( 'create_customer_for_user' ); | ||
|
||
$metadata = [ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'split_upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
]; | ||
|
||
$level3 = [ | ||
|
@@ -479,13 +483,18 @@ public function test_update_payment_intent_with_selected_upe_payment_method() { | |
->method( 'create_customer_for_user' ); | ||
|
||
$metadata = [ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'split_upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
|
||
]; | ||
|
||
$level3 = [ | ||
|
@@ -553,13 +562,17 @@ public function test_update_payment_intent_with_payment_country() { | |
->method( 'create_customer_for_user' ); | ||
|
||
$metadata = [ | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'customer_name' => 'Jeroen Sormani', | ||
'customer_email' => '[email protected]', | ||
'site_url' => 'http://example.org', | ||
'order_id' => $order_id, | ||
'order_number' => $order_number, | ||
'order_key' => $order->get_order_key(), | ||
'payment_type' => Payment_Type::SINGLE(), | ||
'gateway_type' => 'split_upe', | ||
'checkout_type' => '', | ||
'client_version' => WCPAY_VERSION_NUMBER, | ||
'subscription_payment' => 'no', | ||
]; | ||
|
||
$level3 = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters