You can use Direct-Post to securely update a customer’s payment information. To create a Direct-Post configuration set for updating payment information, define the following key-value pairs using the set_reg_uss_config_params API call:
Example: The configuration set for updating payment information could be named direct_post_updatepayinfo.
The customer’s updated payment information is saved in the User Self Service application.
The diagram below illustrates the process in which a customer adds or updates payment information.
* The grey box indicates a function automatically triggered by Direct-Post based on your configuration set.
Note: After a customer logs in, use the validate_session call at every page load to determine the validity of the session and the user with which the session is associated.
Transmit the following fields and values from the payment information page to Direct-Post:
Example: If you named your configuration set direct_post_updatepayinfo, then you would set the mode field to updatepayinfo. The mode field is a hidden field.
If the customer updated or added credit card information:
If the customer updated or added bank account information: