Improved
Renaming & Logic Adjustment for Payment Method Selection
8 months ago by ReadMe API
We have updated the payment-method action to enhance clarity and functionality:
Key Changes
- Parameter Renaming: The parameter previously known as
restrictDefaulthas been renamed todefaultSelectionAllowListto better reflect its purpose. - Logic Adjustment: The functionality has shifted from an exclusion list to an inclusion list. Now, only the payment methods specified in the
defaultSelectionAllowListwill be considered for default selection in user settings.
Impact
- Default Payment Method Selection: When a business process includes a
payment-methodaction with a defineddefaultSelectionAllowList, only the specified payment methods will be eligible for default selection in user settings. If a user's default payment method does not match the allowed list, it will not be set as the default for payment. - Optional Parameter: The
defaultSelectionAllowListparameter is optional. If not provided, all available payment methods may be considered for default selection. - Validation: When creating a
payment-methodaction, ensure that the values specified in thedefaultSelectionAllowListalign with the supported payment method types. Invalid entries will result in an error.
For detailed implementation guidance and further information, please refer to our API Documentation.
