You must log in with Opti ID to use this feature. Email Optimizely Support to have your commerce instance added to Opti ID.
With Optimizely Commerce's Payment Service, you can add payment gateway providers for your ecommerce. This uses Spreedly's iFrame to offer more flexibility and stability:
- Use a payment platform without implementing new code.
- Access more payment gateway options.
- Implement multiple payment services on a single website.
Although Payment Service supports multiple gateways for a single site, there is currently a limit of one gateway per site in Optimizely Configured Commerce. Work with your partner if you want to customize this.
Enable Payment Service
Configured Commerce
To use the Payment Service, contact Optimizely Support to have the keys for a Payment Service instance added to your commerce environment.
After the keys are added and you restart the site, you can see the admin pages for Payment Service to continue the configuration.
Commerce Connect
To use the Payment Service, contact your Customer Success Manager to have a Payment Service instance added to Turnstile. They can then provide the instance keys that must be added to appsetting.json
in Commerce Connect.
"PaymentServiceOptions": { "PaymentServiceIsEnabled": true, "PaymentServiceUrl": "https://xxx.xxx/", "AppKey": "xxxxx”, "SecretKey": "xxxxx”, "AuthenticationType": "HMAC”, "EnvironmentKey": "xxx", "SigningSecret": "xxx", "EnvironmentName": "abc" }
The supported authentication types are HMAC and OBO.
If the EnvironmentKey is empty, provide an EnvironmentName and add the following code to the Configure
function of the Setup.cs
file. The environment was automatically established during start-up and running.
app.SetupPaymentService();
After the keys are added and you restart the site, you can see the admin pages for Payment Service to continue the configuration.
Add gateways
- Go to Administration > Payment Service in Configured Commerce or Commerce Administration > Settings > Payment Service in Commerce Connect.
- Click Add Gateway.
- Select the gateway from the drop-down list. The form populates additional fields depending on the gateway.
- (Optional) Enter a Description.
- (Optional) Select your Merchant Profile Key if you have already created a merchant profile.
- Select whether to use this gateway in your Sandbox Site.
- Fill in any additional information for your gateway.
- Click Create.
Enable 3DS authentication
To enable 3DS authentication, create a merchant profile and an SCA provider.
You cannot perform a new 3DS authorization or sales transaction through the Admin Console in Configured Commerce.
Add a merchant profile
Information for the merchant profile fields comes from your payment provider.
- Go to Administration > Payment Service > Merchant Profiles in Configured Commerce or Commerce Administration > Settings > Payment Service > Merchant Profiles.
- Click Add Merchant Profile.
- (Optional) Enter a Description.
- Enter a Sub-Merchant Key.
- Select a credit card from the drop-down list.
- Enter the Acquirer Merchant ID.
- Enter the Merchant Name.
- Enter a Country Code.
- Enter the MCC. The MCC is the Merchant Category Code, which classifies the type of goods or services that the business sells. See Spreedly's documentation for information.
Add an SCA provider
You must create a merchant profile first to add a Strong Customer Authentication (SCA) provider.
- Go to Administration > Payment Service > SCA Providers in Configured Commerce or Commerce Administration > Settings > Payment Service > SCA Providers in Commerce Connect.
- Click Add SCA Provider.
- Select a Merchant Profile.
- Enter the Type.
- Select whether to use this SCA Provider in your sandbox.
- Select a Credit Card from the drop-down list.
- Enter the Acquirer BIN.
- Enter the Merchant Url.
- Enter the Merchant Brand Id.
- Enter the Merchant Password.
- Click Create. You can also click Cancel to exit without saving.
After you create the SCA provider, the SCA Provider Key displays. Copy this key because this is the only time this information is displayed. If you lose it, you must create another SCA provider.
Enter credentials under settings
Configured Commerce
When you have completed the previous steps, go to Administration > Settings > Spreedly and enter the following information:
- Enter the gateway token from Add gateways. This can be website-specific.
- Toggle on 3DS Enabled.
- Enter the SCA Provider Key and Signing Secret from Add an SCA provider.
Commerce Connect
When you have completed the previous steps, go to Commerce Administration > Settings > Payments, click Create, and enter the following information:
- Enter the Name.
- Enter the System Keyword.
- Enter the Description.
- Select a Language.
- Select a Class Name.
- Select a Payment Class.
- Select whether to use this payment in IsActive.
- Select whether to use this payment in IsDefault.
- Click Save. You can also click Cancel to exit without saving.
Select the payment method you just created and go to the Parameters tab. Click Add parameter.
- Enter the parameter name as GatewayToken.
- Enter the parameter value with the key that was created.
- Click Save. You can also click Cancel to exit without saving.
Go to the payment method you just created. Go to Markets and select the active markets. Click Save if you made changes.
If you want to use 3DS, create two parameters with the following:
- ThreeDsIsEnabled – True
- ScaProviderKey – The key that was created
Click Save. You can also click Cancel to exit without saving.
You can create other methods and sort by IsActive, IsDefault then Ordering values.
How it works
The following flowchart demonstrates the payment service process during cart submission.
Please sign in to leave a comment.