Skip to content

Commit

Permalink
docs(PAYMENTS-18740): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey-Kornienko-xsolla committed Apr 3, 2024
1 parent 5dd0b3d commit 08c6499
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions examples/changing-country/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>Pay Station SDK</h1>
}
/**
* 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 = '';

Expand All @@ -48,7 +48,7 @@ <h1>Pay Station SDK</h1>
/**
* 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({
Expand All @@ -60,7 +60,7 @@ <h1>Pay Station SDK</h1>
/**
* 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);

Expand Down
6 changes: 3 additions & 3 deletions examples/default-styles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Pay Station SDK</h1>
}
/**
* 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 = '';

Expand All @@ -47,7 +47,7 @@ <h1>Pay Station SDK</h1>
/**
* 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({
Expand All @@ -59,7 +59,7 @@ <h1>Pay Station SDK</h1>
/**
* 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);
}
Expand Down
10 changes: 5 additions & 5 deletions examples/google-pay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>GooglePay payment integration (only https)</h1>
}
/**
* 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 = '';

Expand All @@ -61,7 +61,7 @@ <h1>GooglePay payment integration (only https)</h1>
/**
* 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.
*/
Expand All @@ -73,14 +73,14 @@ <h1>GooglePay payment integration (only https)</h1>
/**
* 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;

Expand Down Expand Up @@ -154,7 +154,7 @@ <h1>GooglePay payment integration (only https)</h1>
formElement.append(submitButton);
}

// initialize sdk
// Initialize sdk
initPayStationSdk();
</script>
</body>
Expand Down
10 changes: 5 additions & 5 deletions examples/payment-form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Payment Form component integration</h1>
}
/**
* 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';

Expand All @@ -61,7 +61,7 @@ <h1>Payment Form component integration</h1>
/**
* 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.
*/
Expand All @@ -73,14 +73,14 @@ <h1>Payment Form component integration</h1>
/**
* 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;

Expand Down Expand Up @@ -125,7 +125,7 @@ <h1>Payment Form component integration</h1>
formElement.append(submitButton);
}

// initialize sdk
// Initialize sdk
initPayStationSdk();
</script>
</body>
Expand Down
12 changes: 6 additions & 6 deletions examples/paypal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>PayPal payment integration</h1>
}
/**
* 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 = '';

Expand All @@ -59,7 +59,7 @@ <h1>PayPal payment integration</h1>
/**
* 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.
*/
Expand All @@ -71,21 +71,21 @@ <h1>PayPal payment integration</h1>
/**
* 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,
Expand Down Expand Up @@ -164,7 +164,7 @@ <h1>PayPal payment integration</h1>
formElement.append(submitButton);
}

// initialize sdk
// Initialize sdk
initPayStationSdk();
</script>
</body>
Expand Down
8 changes: 4 additions & 4 deletions examples/return/return.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>PayPal payment return page</h1>
}
/**
* 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',
Expand All @@ -57,7 +57,7 @@ <h1>PayPal payment return page</h1>
/**
* 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.
*/
Expand All @@ -69,12 +69,12 @@ <h1>PayPal payment return page</h1>
/**
* 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();
</script>
</body>
Expand Down
6 changes: 3 additions & 3 deletions examples/saved-methods/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>Pay Station SDK</h1>
}
/**
* 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 = '';

Expand All @@ -54,7 +54,7 @@ <h1>Pay Station SDK</h1>
/**
* 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({
Expand All @@ -65,7 +65,7 @@ <h1>Pay Station SDK</h1>
/**
* 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);

Expand Down
12 changes: 6 additions & 6 deletions examples/secure-component-styles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1>Secure component styles</h1>
}
/**
* 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';

Expand All @@ -78,7 +78,7 @@ <h1>Secure component styles</h1>
/**
* 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.
*/
Expand Down Expand Up @@ -109,29 +109,29 @@ <h1>Secure component styles</h1>
/**
* 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,
returnUrl: 'http://return',
});
}

// initialize sdk
// Initialize sdk
initPayStationSdk();
</script>
</body>
Expand Down
6 changes: 3 additions & 3 deletions examples/select-method/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Pay Station SDK</h1>
}
/**
* 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 = '';

Expand All @@ -51,7 +51,7 @@ <h1>Pay Station SDK</h1>
/**
* 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({
Expand All @@ -62,7 +62,7 @@ <h1>Pay Station SDK</h1>
/**
* 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);

Expand Down

0 comments on commit 08c6499

Please sign in to comment.