---
title: Refresh Sandbox
slug: payments/refresh-sandbox
createdAt: 2025-02-13T15:14:09.078Z
---

:::hint{type="warning"}
Ensure no configuration data related to Unaric Payments in your production custom settings is copied during a sandbox refresh. Set up a separate configuration on the Unaric Payments staging server for your sandbox.
:::

:::hint{type="warning"}
If you have any custom data or configurations in your sandbox integration, consider backing it up before refreshing to ensure you can restore it if needed. These values are typically saved in the **Custom Settings**, **Custom Metadata Types**, and **Named Credentials**.
:::

:::hint{type="success"}
Test everything once the refresh is done and update the related document with test results.
:::

## Refresh your Sandbox

:::hint{type="info"}
For detailed steps, see [Refresh Your Sandbox ](https://help.salesforce.com/s/articleView?id=platform.data_sandbox_refresh.htm\&type=5)from Salesforce documentation.
:::

Each Salesforce Sandbox is uniquely paired with a customer ID. When refreshing your sandbox, you have two options:

::::Tabs
:::Tab{title="Transfer your customer ID"}
You can move your current customer ID to a new Salesforce Sandbox. This option is ideal if you want to retain your existing customizations, since it preserves your customized paypage settings and test PSP connections.

Remember, a customer ID can only be connected to one sandbox at a time.

To link a new sandbox to your existing customer ID, follow these steps:

1. **Submit a Ticket**
   &#x20;Email [support@unaric.com](mailto\:support@asperato.com) with the following details:&#x20;
   - **Sandbox Salesforce Org ID**
   - **&#x20;Customer ID.&#x20;**&#x41;vailable in th&#x65;**&#x20;Unaric Payments Setup&#x20;**&#x74;ab under **Configuration Status**.
   - **Grant Account Login Access:** Provide access under Payonomy T/A Asperato.

***
:::

:::Tab{title="Create a new customer ID"}
Alternatively, you can connect your new Salesforce org to a new Customer ID. When you connect on the Unaric Payments Setup tab, a new Customer ID is automatically generated, which is suitable if you prefer a fresh setup with default configurations.

You'll start with default settings for the paypage and PSP connections. If you need to transfer your previous paypage customizations, our support team can help with that.

***
:::
::::

### Reactivate Scheduled Jobs for Sandbox

All scheduled jobs are deactivated after the refresh. Unaric Payments Repeat Payment job will not work after sandbox refresh. The workaround is to delete the scheduled job and recreate it using a user account that has a *system administrator* profile.

To remove the scheduled task:

1. Go to **Setup** **> Jobs >** **Scheduled Jobs**.
2. In the list there will be a job called *Asperato Repeat Payment&#x20;*&#x6F;r *Unaric Payments Repeat Payment.* Make a note of the start time and then delete the job.

You can then recreate it using these instructions:

1. Navigate to **Setup > Build > Develop > Apex Classes** and click the **Schedule Apex** button
2. A screen will be displayed enabling you to establish the run criteria.
3. Enter a **Job Name.** *Unaric Payments Repeat Payment* is a recommended value.
   Next to the **Apex Class** box press the magnifying glass icon and in the list that displays select **BatchProcessPaymentSchedules**.
4. In the **Scheduled Apex Execution** section, set the Frequency to *Weekly* and tick all the boxes under **Recurs every week on**.
5. Select a **Start date** (defaults to *Today*).
6. Set an **End date**. The default is in one month and you should change this to a value a long time in the future such as 31/12/2050.
7. Set the **Preferred Start Time** to a value, a suggestion would be 04:00 or 05:00.
8. Save this record and that will schedule the task.

