shop:payment_profile
Use the shop:payment_profile action for creating the payment profile page. Please refer to the Implementing customer payment profiles documentation article for usage details and code examples.
The payment profile page expects the payment method identifier to be specified in the first URL segment.
Supported form fields
- submit_profile - a name for the submit button for saving the payment profile.
- delete_profile - a name for the submit button for deleting the payment profile.
Generated PHP variables
- $payment_method - the payment method object. This variable can be empty if the payment method not found.
- $payment_method_obj – an instance of a specific payment method class (for example Shop_Authorize_Net_Aim_Payment). Call the render_payment_profile_form() method of this object to render the payment profile form.
- $payment_profile - a customer payment profile object (the object has the$cc_four_digits_num and $profile_data fields). If the profile does not exist, this variable has NULL value.
Supported AJAX handlers
- shop:on_updatePaymentProfile - updates (or creates) the payment profile.
- shop:on_deletePaymentProfile - deletes the payment profile.
Next: Step-by-step checkout actions
Previous: Core_CacheBase
Return to Reference

