A new feature is added to assist the operator in automatically charging the customer a credit card fee, when this method is used for paying.
To make use of this feature:
1. Create a product e.g. Credit Card Fee e.g. fig1
2. Enable the trigger: Customer Payment Method Change. fig2
The trigger will fire only if customer payment method changes (it will fire when customer is added as well)
3. Set the cronjob to detect customers who paid using a different method than defined on their account and add a once off fee for the next invoice run. fig3
Fig 1: Credit Card Fee Product
Fig 2: Trigger - Customer Payment Method Change
Fig 3: Cronjob: Apply Payment Type Fee
In the above example the cronjob is configured to detect "credit card payment" and apply product ID = 35 (Credit Card Fee). The script is set to run once a day so "onPaymentTime" was set to scan payments in the last "1 day".
Fig 4: Example - Once-off Fee Added to Customer Account
4. For the trigger to work a few new options were added to the SIMPLer API callback module.
The SIMPLer API callback is configured to:
Automatically add 'Credit Card Fee' subscription if customer payment method is set to 'credit card'.
Automatically remove 'Credit Card Fee' subscription if customer payment method is no longer 'credit card'.
Fig 5: SIMPLer API callback module
Customer_PaymentMethod_Change_From - module will be called only if payment method is changed "from" specific payment method
Customer_PaymentMethod_Change_To - module will be called only if payment method is changed "to" specific payment method
Customer_PaymentMethod_Change_Action - action to be performed (API call) if "from"/"to" condition is met
Published Date: 24 April 2025
Engineer: PD
Contact Azotel Support:
Need more help? Save time by creating a maintenance ticket to Azotel through your instance or email support@azotel.com.