Migration Flow {#rb-subs-migration-0-flow}
==========================================

The migration process involves writing and running a script that creates Recurring Billing subscriptions in the `Cybersource` account. This topic presents an overview of the process.  
**Prepare for the migration.** Before beginning the migration process, understand the limitations and ensure all migration prerequisites are met.  
Perform these five tasks twice: first in your `Cybersource` test environment and after validating the test migration, in your `Cybersource` production environment.

* **Task 1: Enable the `Cybersource` Recurring Billing service.** After migration prerequisites are met, request activation of Recurring Billing for your `Cybersource` account. When you receive the confirmation notice, proceed to the next task.
* **Task 2: Integrate with the `Cybersource` API.** Generate API keys for your preferred authentication method at the `Cybersource` `Business Center`. Integrate this authentication method into your migration script using the `Cybersource` API.
* **Task 3: Export your current subscriptions to a file.** Export all active subscriptions from your current provider to a file. In the next task, you write and run a migration script that parses the export file and creates subscriptions on the `Cybersource` system.
* **Task 4: Create new subscriptions in the `Cybersource` system.** Write and run a script that sends subscription creation requests to the `Cybersource` subscription service. The new subscriptions replicate the active subscriptions in your current subscriptions provider.
* **Task 5: Validate the new subscriptions in your test environment.** After running the subscription creation script, verify that the newly created subscriptions match your exported subscription data. Within your test environment, send test transactions in order to validate proper setup.

**Finalize the migration.** In your production environment, monitor the transactions of the new subscriptions. Verify that your subscriptions are successfully transitioned from your former subscriptions provider. To avoid creating duplicate charges, deactivate the recurring billing feature on the former subscriptions provider.
