Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 4.31 KB

Key-Creation.md

File metadata and controls

44 lines (33 loc) · 4.31 KB

Key Creation

Commercetools

Cybersource Extension API Keys

The API Extension and the Synchronization Service requires an API key which will be used throughout the payments process. The scopes required for this API key are:

Scope Reason
manage_payments Adding and updating transactions during synchronization process
manage_orders
  • Updating the cart with Billing and Shipping addresses while using Visa Click to Pay
  • Extracting line item data from the cart
manage_customers It is required for updating the customer for saved card tokens
manage_types Creating custom types required to process payments and saved card tokens
manage_extensions Extending payment create, update and customer update APIs
view_types To get the Id of the custom payment and payment interface interaction types on API Extension startup
view_customer For viewing the customer created and dealing with their custom data

Frontend API Key

To be used for frontend applications in order to create and manage payments and carts for customers. The scopes for the API key used here should be limited to the 'My' Commercetools APIs to limit access a client-side application has to the data in Commercetools.

Scope Reason
view_published_products Adding items into the cart
view_orders To view orders
view_categories To view product categories
manage_customers To update or delete saved cards
manage_my_payments To allow payments to be created in Commercetools to initiate the payment flow with Cybersource
manage_my_orders Adding Payments to the Order
manage_my_profile Access to the current customers profile so it can be associated with the Payment and Order
create_anonymous_token (optional) If you are using the key to control the customers session

Cybersource

REST Shared Secret

Flex token generation uses a shared secret to generate one-time keys to encrypt the user's Card details on the client side and HTTP Signature authentication for Cybersource REST API services. Set up a secret as per this guide and store the values safely. These should be provided in the API Extension's .env file as described in the API Extension Setup page.