diff --git a/examples/changing-country/index.html b/examples/changing-country/index.html index 7a191c0..877bcf6 100644 --- a/examples/changing-country/index.html +++ b/examples/changing-country/index.html @@ -29,7 +29,7 @@

Pay Station SDK

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -48,7 +48,7 @@

Pay Station SDK

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * Please note that this command executes asynchronously. */ await headlessCheckout.init({ @@ -60,7 +60,7 @@

Pay Station SDK

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); diff --git a/examples/default-styles/index.html b/examples/default-styles/index.html index bea13b0..6eb73b2 100644 --- a/examples/default-styles/index.html +++ b/examples/default-styles/index.html @@ -28,7 +28,7 @@

Pay Station SDK

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -47,7 +47,7 @@

Pay Station SDK

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * Please note that this command executes asynchronously. */ await headlessCheckout.init({ @@ -59,7 +59,7 @@

Pay Station SDK

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); } diff --git a/examples/google-pay/index.html b/examples/google-pay/index.html index 5f9a037..58558c7 100644 --- a/examples/google-pay/index.html +++ b/examples/google-pay/index.html @@ -42,7 +42,7 @@

GooglePay payment integration (only https)

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -61,7 +61,7 @@

GooglePay payment integration (only https)

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * You can set sandbox payment mode with `sandbox` parameter * Please note that this command executes asynchronously. */ @@ -73,14 +73,14 @@

GooglePay payment integration (only https)

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); /** * Define payment method id. * To get lists of payment methods use psdk-payment-methods. - * Please see `examples/select-method` for more details + * Refer to `examples/select-method` for more details */ const googlePayPaymentMethodId = 3431; @@ -154,7 +154,7 @@

GooglePay payment integration (only https)

formElement.append(submitButton); } - // initialize sdk + // Initialize sdk initPayStationSdk(); diff --git a/examples/payment-form/index.html b/examples/payment-form/index.html index b764caf..633a192 100644 --- a/examples/payment-form/index.html +++ b/examples/payment-form/index.html @@ -42,7 +42,7 @@

Payment Form component integration

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = '8sogGIVUx5xz1vWhRbYR7E0gUEjgN0er_lc_en'; @@ -61,7 +61,7 @@

Payment Form component integration

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * You can set sandbox payment mode with `sandbox` parameter * Please note that this command executes asynchronously. */ @@ -73,14 +73,14 @@

Payment Form component integration

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); /** * Define payment method id. * To get lists of payment methods use psdk-payment-methods. - * Please see `examples/select-method` for more details + * Refer to `examples/select-method` for more details */ const paymentMethodId = 1380; @@ -125,7 +125,7 @@

Payment Form component integration

formElement.append(submitButton); } - // initialize sdk + // Initialize sdk initPayStationSdk(); diff --git a/examples/paypal/index.html b/examples/paypal/index.html index d67d9a0..b93f5be 100644 --- a/examples/paypal/index.html +++ b/examples/paypal/index.html @@ -40,7 +40,7 @@

PayPal payment integration

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -59,7 +59,7 @@

PayPal payment integration

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * You can set sandbox payment mode with `sandbox` parameter * Please note that this command executes asynchronously. */ @@ -71,21 +71,21 @@

PayPal payment integration

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); /** * Define payment method id. * To get lists of payment methods use psdk-payment-methods. - * Please see `examples/select-method` for more details + * Refer to `examples/select-method` for more details */ const paypalPaymentMethodId = 24; /** * Initialize payment. * returnUrl will be opened after payment completed on PayPal side. - * Please see `examples/return.html` for more details + * Refer to `examples/return.html` for more details */ const form = await headlessCheckout.form.init({ paymentMethodId: paypalPaymentMethodId, @@ -164,7 +164,7 @@

PayPal payment integration

formElement.append(submitButton); } - // initialize sdk + // Initialize sdk initPayStationSdk(); diff --git a/examples/return/return.html b/examples/return/return.html index 5f72b83..83425a6 100644 --- a/examples/return/return.html +++ b/examples/return/return.html @@ -36,7 +36,7 @@

PayPal payment return page

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = new URL(window.location.href).searchParams.get( 'token', @@ -57,7 +57,7 @@

PayPal payment return page

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * You can set sandbox payment mode with `sandbox` parameter * Please note that this command executes asynchronously. */ @@ -69,12 +69,12 @@

PayPal payment return page

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); } - // initialize sdk + // Initialize sdk initPayStationSdk(); diff --git a/examples/saved-methods/index.html b/examples/saved-methods/index.html index 6ebe7a6..bc3687e 100644 --- a/examples/saved-methods/index.html +++ b/examples/saved-methods/index.html @@ -35,7 +35,7 @@

Pay Station SDK

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -54,7 +54,7 @@

Pay Station SDK

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * Please note that this command executes asynchronously. */ await headlessCheckout.init({ @@ -65,7 +65,7 @@

Pay Station SDK

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); diff --git a/examples/secure-component-styles/index.html b/examples/secure-component-styles/index.html index c4f9768..450d475 100644 --- a/examples/secure-component-styles/index.html +++ b/examples/secure-component-styles/index.html @@ -59,7 +59,7 @@

Secure component styles

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = '8sogVNwcYkzm6UeULtAJOYMPMCBaXvI1_lc_en'; @@ -78,7 +78,7 @@

Secure component styles

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * You can set sandbox payment mode with `sandbox` parameter * Please note that this command executes asynchronously. */ @@ -109,21 +109,21 @@

Secure component styles

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken); /** * Define payment method id. * To get lists of payment methods use psdk-payment-methods. - * Please see `examples/select-method` for more details + * Refer to `examples/select-method` for more details */ const paypalPaymentMethodId = 24; /** * Initialize payment. * returnUrl will be opened after payment completed on PayPal side. - * Please see `examples/return.html` for more details + * Refer to `examples/return.html` for more details */ const form = await headlessCheckout.form.init({ paymentMethodId: paypalPaymentMethodId, @@ -131,7 +131,7 @@

Secure component styles

}); } - // initialize sdk + // Initialize sdk initPayStationSdk(); diff --git a/examples/select-method/index.html b/examples/select-method/index.html index 0c98e8c..1cb0491 100644 --- a/examples/select-method/index.html +++ b/examples/select-method/index.html @@ -33,7 +33,7 @@

Pay Station SDK

} /** * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ const accessToken = ''; @@ -51,7 +51,7 @@

Pay Station SDK

/** * Call the `init()` method with the provided environment object. * The isWebView parameter is required and indicates whether your - * integration type is a webview or not. + * integration type is a WebView or not. * Please note that this command executes asynchronously. */ await headlessCheckout.init({ @@ -62,7 +62,7 @@

Pay Station SDK

/** * After the Payments SDK has been initialized, the next step is setting the token. * To learn more about creating tokens, - * please read https://developers.xsolla.com/api/pay-station/operation/create-token/ + * refer to https://developers.xsolla.com/api/pay-station/operation/create-token/ */ await headlessCheckout.setToken(accessToken);