mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix for AXO sdk changes
This commit is contained in:
parent
11b87155f3
commit
86be3055c5
2 changed files with 6 additions and 4 deletions
|
@ -70,8 +70,10 @@ class SdkClientToken {
|
|||
*/
|
||||
public function sdk_client_token( string $target_customer_id = '' ): string {
|
||||
$bearer = $this->bearer->bearer();
|
||||
$domain = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$url = trailingslashit( $this->host ) . 'v1/oauth2/token?grant_type=client_credentials&response_type=client_token&intent=sdk_init&domains[]=*.' . $domain;
|
||||
|
||||
$url = trailingslashit( $this->host ) . 'v1/oauth2/token?grant_type=client_credentials&response_type=client_token&intent=sdk_init';
|
||||
if ( $target_customer_id ) {
|
||||
$url = add_query_arg(
|
||||
array(
|
||||
|
|
|
@ -451,10 +451,10 @@ class AxoManager {
|
|||
this.el.gatewayRadioButton.trigger('change');
|
||||
}
|
||||
|
||||
renderWatermark() {
|
||||
this.fastlane.FastlaneWatermarkComponent({
|
||||
async renderWatermark() {
|
||||
(await this.fastlane.FastlaneWatermarkComponent({
|
||||
includeAdditionalInfo: true
|
||||
}).render(this.el.watermarkContainer.selector);
|
||||
})).render(this.el.watermarkContainer.selector);
|
||||
}
|
||||
|
||||
watchEmail() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue