Session Configurations
Quick Reference
- Purpose: Customize the session experience for customers.
- Key Object:
config - Common Options:
modes: Session modes (e.g., PAYMENT, PAYMENT_WITH_WALLET)paymentMethodChannel: Supported channels for card/bank accountprivacyPolicyUrl: Custom privacy policy linksenderEmailAddress: Sender email for notificationsoptions: Save/payment method options, languagemerchant: Merchant-specific info
- Usage: Place the
configobject in your session request to enable these features. - See Also: Session Request documentation
Session configurations allow merchants to customize the widget experience for customers. The config object supports options such as session modes, payment method channels, preferred language, privacy policy URL, sender email address, and more.
Supported Configurations
Modes
- Available Session Modes: Modes
Config - Modes
"config": {
"modes": [
"PAYMENT_WITH_WALLET"
]
}
Payment Method Channel
-
Available Payment Method Types:
CARDBANK_ACCOUNT
-
Available Payment Method Channel:
- Card:
WEBFORM,TEXT,EMAIL,GOOGLE_PAY,APPLE_PAY,TELEPHONIC_ENTRY - Bank Account:
WEBFORM,TEXT,EMAIL
- Card:
Config - Payment Method Channel
"config": {
"paymentMethodChannel": {
"card": ["WEBFORM"]
}
}
Preferred Language
Config - Preferred Language
"config": {
"options":{
"preferredLanguage":"es"
}
}
Privacy Policy URL
Config - Privacy Policy URL
"config": {
"privacyPolicyUrl":"www.policyurl.com"
}
Sender Email Address
Config - Sender Email Address
"config": {
"senderEmailAddress":"merchant@domain.com"
}
Merchant Object
Config - Merchant Object
"config": {
"merchant": {
"name": "string"
}
}
PaymentMethod SaveMode
Config - paymentMethodSaveMode
- Type: string
- Default: "ALLOW_SAVE"
- Description: Controls how a card or bank account is saved as a payment method after a successful payment.
- Supported Modes: PAYMENT
- Note: Do not use both 'paymentMethodSaveMode' & 'saveDisabled' simultaneously.
| Enum Value | Description |
|---|---|
| ALLOW_SAVE | Displays the option to save the payment method. |
| DISABLE_SAVE | Hides the save payment method option. |
| AUTO_SAVE | Automatically saves the payment method without displaying the save option. |
"config": {
"options":{
"paymentMethodSaveMode":"DISABLE_SAVE"
}
}
Card Categories
Card Categories Configuration
- Type:
MANUFACTURER_CARD - Label:
Manufacturer copay card - Medications:
- label: Pharacetamol
- value: 100mg
"cardCategories": [
{
"type": "MANUFACTURER_CARD",
"label": "Manufacturer copay card",
"medications": [
{
"label": "Pharacetamol",
"value": "100mg"
}
]
}
]