Task 2: Integrate with the `Cybersource` API {#rb-subs-migration-2-integrate}
=============================================================================

Set up authentication using either JSON Web Token (JWT) or HTTP Signature.
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.

1. To integrate with the `Cybersource` API:
2. Log in to your `Cybersource` account at the `Business Center`.
   * Production: ` `<https://businesscenter.cybersource.com>` `
   * Test: ` `<https://businesscentertest.cybersource.com/ebc2>` `
3. Set up your `Cybersource` account for secure communication of REST API messages using either JSON Web Token or HTTP Signature. Generate a P12 key for JWT or a shared secret key pair for HTTP Signature: [Set Up Your `Cybersource` Account](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-setup-workflow.md "")
4. Integrate the selected authentication method into the subscription creation script.
   * For JWT authentication, see [Set Up JSON Web Token Messaging](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-jwt-message-intro.md "").

* For HTTP Signature authentication, see [Set Up an HTTP Signature Message](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-http-message-intro.md "").

