mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Use full URL for return endpoint
This commit is contained in:
parent
1a9fbc1303
commit
703656bec2
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class ApplicationContextRepository {
|
|||
$landingpage = $this->settings->has( 'landing_page' ) ?
|
||||
$this->settings->get( 'landing_page' ) : ApplicationContext::LANDING_PAGE_NO_PREFERENCE;
|
||||
$context = new ApplicationContext(
|
||||
\WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ),
|
||||
network_home_url( \WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ) ),
|
||||
(string) wc_get_checkout_url(),
|
||||
(string) $brand_name,
|
||||
$locale,
|
||||
|
|
|
@ -36,7 +36,7 @@ class ApplicationContextRepositoryTest extends TestCase
|
|||
->andReturn($value);
|
||||
}
|
||||
|
||||
expect('home_url')
|
||||
expect('network_home_url')
|
||||
->andReturn('https://example.com/');
|
||||
expect('wc_get_checkout_url')
|
||||
->andReturn('https://example.com/checkout/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue