-
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.
Patch: Fix subscription renewals exceptions (#8683)
Co-authored-by: Timur Karimov <[email protected]> Co-authored-by: Timur Karimov <[email protected]> Co-authored-by: Daniel Mallory <[email protected]> Co-authored-by: Daniel Mallory <[email protected]>
- Loading branch information
1 parent
da0a15c
commit 174ea29
Showing
8 changed files
with
54 additions
and
58 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: patch | ||
Type: fix | ||
|
||
Bugfix for failing subscription renewal payments. |
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: dev | ||
|
||
Remove deprecated param from asset data registry interface. |
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
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
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 |
---|---|---|
|
@@ -484,16 +484,16 @@ public function test_update_payment_method_with_billing_details_from_order() { | |
[ | ||
'billing_details' => [ | ||
'address' => [ | ||
'city' => 'WooCity', | ||
'country' => Country_Code::UNITED_STATES, | ||
'line1' => 'WooAddress', | ||
'line2' => '', | ||
'postal_code' => '12345', | ||
'city' => 'WooCity', | ||
'state' => 'NY', | ||
'postal_code' => '12345', | ||
], | ||
'phone' => '555-32123', | ||
'email' => '[email protected]', | ||
'name' => 'Jeroen Sormani', | ||
'phone' => '555-32123', | ||
], | ||
] | ||
); | ||
|
@@ -504,15 +504,6 @@ public function test_update_payment_method_with_billing_details_from_order() { | |
} | ||
|
||
public function test_update_payment_method_with_billing_details_from_checkout_fields() { | ||
$fields = wc()->checkout()->checkout_fields; | ||
unset( $fields['billing']['billing_company'] ); | ||
unset( $fields['billing']['billing_country'] ); | ||
unset( $fields['billing']['billing_address_1'] ); | ||
unset( $fields['billing']['billing_address_2'] ); | ||
unset( $fields['billing']['billing_city'] ); | ||
unset( $fields['billing']['billing_state'] ); | ||
unset( $fields['billing']['billing_phone'] ); | ||
wc()->checkout()->checkout_fields = $fields; | ||
$this->mock_api_client | ||
->expects( $this->once() ) | ||
->method( 'update_payment_method' ) | ||
|
@@ -522,9 +513,15 @@ public function test_update_payment_method_with_billing_details_from_checkout_fi | |
'billing_details' => [ | ||
'address' => [ | ||
'postal_code' => '12345', | ||
'city' => 'WooCity', | ||
'country' => 'US', | ||
'line1' => 'WooAddress', | ||
'line2' => '', | ||
'state' => 'NY', | ||
], | ||
'email' => '[email protected]', | ||
'name' => 'Jeroen Sormani', | ||
'phone' => '555-32123', | ||
], | ||
] | ||
); | ||
|