This article provides common use cases for the Direct Post Payment Handler. These use cases are examples only, and are not all‐inclusive of Direct Post capabilities.
Change Method of Payment
Use Case
No authorization, collection, or payment validation required. This updates the default payment method without any validation.
To accomplish this:
- Set <redirecturl> to the URL to which the direct post application returns.
Update Method of Payment
Use Case 1
Authorize electronic payment if credit card is the selected payment method.
To accomplish this:
- Set <redirecturl> to the URL to which the direct post application returns.
- Set <do_combined_auth_and_collect> to 0.
Use Case 2
Authorize electronic payment if credit card is the selected payment method, suspending the master plan instance if authorization fails, and setting the master plan instance to Active Trial if authorization succeeds.
To accomplish this:
- Set <redirecturl> to the URL to which the direct post application returns.
- Set <do_combined_auth_and_collect> to 0.
- Set <change_mp_status_on_failure> to 1.
- Set <mp_status_on_failure> to ‐1 (i.e., suspended).
- Set <change_mp_status_on_success> to 1.
- Set <mp_status_on_success> to 41 (i.e., active trial).