# General information > [!NOTE] > Item purchase is available to authorized users only. For information about options for authenticating users using SDK methods, refer to the [Authentication](/sdk-client-side/cocos/authentication/) section. **Audience: all other audiences** The payment UI is based on the [Pay Station](/payment-ui-and-flow/) product. The choice of available payment methods and other settings are available in [Publisher Account](https://publisher.xsolla.com/signup?store_type=sdk) in the **Payments** section. **End of audience: all other audiences** **Audience: Web games** The payment UI is based on the [Pay Station](/payment-ui-and-flow/) product. The choice of available payment methods and other settings are available in [your account](https://xsolla.com/for/web-games/account) in the **Payments** section. **End of audience: Web games** **Audience: Free-to-play PC games** The payment UI is based on the [Pay Station](/payment-ui-and-flow/) product. The choice of available payment methods and other settings are available in [your account](https://xsolla.com/for/free-to-play-pc/account) in the **Payments** section. **End of audience: Free-to-play PC games** **Audience: Premium PC games** The payment UI is based on the [Pay Station](/payment-ui-and-flow/) product. The choice of available payment methods and other settings are available in [your account](https://xsolla.com/for/premium-pc-games/account) in the **Payments** section. **End of audience: Premium PC games** **Audience: Mobile games** The payment UI is based on the [Pay Station](/payment-ui-and-flow/) product. The choice of available payment methods and other settings are available in [your account](https://xsolla.com/for/mobile-games/account) in the **Payments** section. **End of audience: Mobile games** The SDK supports the item purchase from the catalog in one click or via the shopping cart. To test the purchase process, you can use sandbox mode of payment UI and [test bank cards](/dev-resources/testing/test-cards/). The sandbox mode only simulates the behavior of a payment method; no real money is involved. To try sandbox, you don't need to sign any agreements with Xsolla or pay any fees. **Audience: all other audiences** > [!NOTE] > After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in [Publisher Account](https://publisher.xsolla.com/signup?store_type=sdk) in the **Company settings > Users** section. **End of audience: all other audiences** **Audience: Web games** > [!NOTE] > After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in [your account](https://xsolla.com/for/web-games/account) in the **Settings > Members** section. **End of audience: Web games** **Audience: Free-to-play PC games** > [!NOTE] > After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in [your account](https://xsolla.com/for/free-to-play-pc/account) in the **Settings > Members** section. **End of audience: Free-to-play PC games** **Audience: Premium PC games** > [!NOTE] > After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in [your account](https://xsolla.com/for/premium-pc-games/account) in the **Settings > Members** section. **End of audience: Premium PC games** **Audience: Mobile games** > [!NOTE] > After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in [your account](https://xsolla.com/for/mobile-games/account) in the **Settings > Members** section. **End of audience: Mobile games** ## How-tos Learn about advanced setups from our how-tos. **Section: How to set up user redirection to your application after payment** To redirect users to another page after they completed the payment, you can configure two types of redirects: - automatic — a redirect with a set delay. - manual — a redirect after a user clicks the redirect button. ![back to the game ps4](https://cdn.xsolla.net/developers/current/images/guides/pay-station/how-to/configure-redirects/back-to-the-game-ps4.svg) **Audience: all other audiences** You can configure a redirect in the following ways: - [in Publisher Account](#sdk_configure_redirects_in_publisher) — use this option if you are setting up a project for a single application and don’t plan to create builds for different platforms. **End of audience: all other audiences** **Audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** You can configure a redirect in the following ways: - [in your account](#sdk_configure_redirects_in_publisher_account) — use this option if you are setting up a project for a single application and don’t plan to create builds for different platforms. **End of audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** - [in the SDK settings](#sdk_configure_redirects_in_sdk_settings) — use this option if you plan to: - use the project for multiple applications - create builds for different platforms - sell in-game items via the website **Audience: all other audiences** > [!NOTE] > If redirects are configured in Publisher Account and SDK settings, the parameters specified in the SDK settings are used. **End of audience: all other audiences** **Audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** > [!NOTE] > If redirects are configured in your account and SDK settings, the parameters specified in the SDK settings are used. **End of audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** **Audience: all other audiences** ## Configure redirects in Publisher Account **End of audience: all other audiences** **Audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** ## Configure redirects in your account **End of audience: Web games, Free-to-play PC games, Premium PC games, Mobile games** **Audience: all other audiences** 1. Open your project in Publisher Account and go to the [Payments > Payment interface > General settings > Redirect policy](https://publisher.xsolla.com/0/projects/0/payments/configuration?store_type=sdk) section. **End of audience: all other audiences** **Audience: Web games** 1. Open the project in your account and go to the [Payments > Payment interface > General settings > Redirect policy](https://xsolla.com/for/web-games/account/0/projects/0/payments/configuration) section. **End of audience: Web games** **Audience: Free-to-play PC games** 1. Open the project in your account and go to the [Payments > Payment interface > General settings > Redirect policy](https://xsolla.com/for/free-to-play-pc/account/0/projects/0/payments/configuration) section. **End of audience: Free-to-play PC games** **Audience: Premium PC games** 1. Open the project in your account and go to the [Payments > Payment interface > General settings > Redirect policy](https://xsolla.com/for/premium-pc-games/account/0/projects/0/payments/configuration) section. **End of audience: Premium PC games** **Audience: Mobile games** 1. Open the project in your account and go to the [Payments > Payment interface > General settings > Redirect policy](https://xsolla.com/for/mobile-games/account/0/projects/0/payments/configuration) section. **End of audience: Mobile games** **Audience: all other audiences** ![redirect policy section](https://cdn.xsolla.net/developers/current/images/guides/pay-station/how-to/configure-redirects/redirect-policy-section.svg) **End of audience: all other audiences** **Audience: Web games, Free-to-play PC games, Premium PC games** ![redirect policy section account](https://cdn.xsolla.net/developers/current/images/guides/pay-station/how-to/configure-redirects/redirect-policy-section-account.svg) **End of audience: Web games, Free-to-play PC games, Premium PC games** **Audience: Mobile games** ![redirect policy section account](https://cdn.xsolla.net/developers/current/images/guides/pay-station/how-to/configure-redirects/redirect-policy-section-account.svg) **End of audience: Mobile games** 2. In the **Return URL** field, enter the URL or path where a user is redirected to after making a payment. > [!NOTE] > To redirect users to a mobile application, the URL must match one of the following schemes: > - `app://xpayment.`, where `` is the [package name of the Android application](https://developer.android.com/studio/build/configure-app-module#set-application-id). > - `app://xpayment.`, where `` is the [iOS application identifier](https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids). 3. To set automatic redirect parameters: a. In the drop-down list, choose **Automatic redirect condition**: - **None — do not redirect**. - **Successful payment** — redirect when a payment is successful. - **Successful or canceled payment** — redirect when a payment is successful or canceled. - **Any payment** — redirect for any payment status. b. In the **Delay** field, enter a redirect timeout in seconds. By default, a redirect is activated in 0 seconds. 4. To set manual redirect parameters: a. In the drop-down list, choose **Manual redirect condition**: - **None — do not redirect**. - **Successful payment** — the redirect button appears when a payment is successful. - **Successful or canceled payment** — the redirect button appears when a payment is successful or canceled. - **Any payment** — the redirect button appears for any payment status. b. In the **Redirect button caption** field, enter the copy for the button that redirects a user to the return URL. > [!NOTE] > > The redirect button copy is **Back to the Game** by default. It is localized in all Pay Station languages. > > If your project supports several languages, you can specify redirect button copy for each of them in the respective fields. > > When a user closes the payment UI, they are also redirected to the specified return URL. 5. Click **Save changes**. ## Configure redirects in SDK settings Pass the redirect parameters to the `init` method. To do this, add the lines in the source code of your project in Cocos Creator in accordance with the example for Android build below. Set redirect parameters: 1. In the `useSettingsFromPublisherAccount` pass `false`. 2. In the `returnUrl` parameter, pass a URL or a path a user will be redirected to after making a payment. > [!NOTE] > To redirect users to a mobile application, the URL must match one of the following schemes: > - `app://xpayment.`, where `` is the [package name of the Android application](https://developer.android.com/studio/build/configure-app-module#set-application-id). > - `app://xpayment.`, where `` is the [iOS application identifier](https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids). 3. To set automatic redirect parameters: a. In the `redirectCondition` parameter, pass conditions when a redirect is activated: - `PaymentRedirectCondition.none` — do not redirect. - `PaymentRedirectCondition.successful` — redirect when a payment is successful. - `PaymentRedirectCondition.successful_or_canceled` — redirect when a payment is successful or canceled. - `PaymentRedirectCondition.any` — redirect for any payment status. b. In the `redirectDelay` parameter, pass a redirect timeout in seconds. 4. To set manual redirect parameters: a. In the `redirectStatusManual` parameter, pass a payment status when the redirect button appears: - `PaymentRedirectCondition.none` — do not redirect. - `PaymentRedirectCondition.successful` — redirect when a payment is successful. - `PaymentRedirectCondition.successful_or_canceled` — redirect when a payment is successful or canceled. - `PaymentRedirectCondition.any` — redirect for any payment status. b. In the `redirectButtonCaption` parameter, pass copy for the button that redirects a user to the return URL. > [!NOTE] > > The redirect button copy is **Back to the Game** by default. It is localized in all Pay Station languages. > > If your project supports several languages, you can specify redirect button copy for each of them in the respective fields. > > When a user closes the payment UI, they are also redirected to the specified return URL. **Example of setting up redirects for Android build:** ```typescript let redirectPolicySettingsAndroid: RedirectPolicySettings = { useSettingsFromPublisherAccount: false, returnUrl: 'app://xpayment.com.example.myapp', redirectCondition: PaymentRedirectCondition.successful, redirectDelay: 0, redirectStatusManual: PaymentRedirectStatusManual.successful, redirectButtonCaption: 'Back to the game' }; var settings: XsollaSettings = { loginId: '', projectId: '', clientId: '', enableSandbox: IsSandbox, redirectPolicySettingsAndroid: redirectPolicySettingsAndroid } Xsolla.init(settings); ``` > [!NOTE] > You can set different redirect parameters for different build platforms for your application. To do this, use the parameters: > - `redirectPolicySettingsAndroid` > - `redirectPolicySettingsIOS` > - `redirectPolicySettingsWebGL`