Has anyone used Gravity Forms to create a form that enables a user to update the credit card information (card number and/or expiration date) used for recurring payments on his subscription at Authorize.net?
Has anyone used Gravity Forms to create a form that enables a user to update the credit card information (card number and/or expiration date) used for recurring payments on his subscription at Authorize.net?
Is this feature being worked on?
Not that I know of. This isn't something within the scope of our current add-on options. I'll move this to Feature Requests for our developers to see.
I ended up doing this myself, using the GF hook "gform_pre_submission", and my own api call using the AuthNet ARB php library. This worked in a proof-of-concept test, and in my AuthNet Sandbox account,.. but I have not actually built it into a real site yet, so use at your own risk.
You should probably clean/sanitize the user input from the $_POST fields, of course change the $_POST field names to match your form.
THE FORM
The form is on a page that is restricted to logged-in users. The ARB api requires the FirstName and LastName to be separate fields (as i recall), but GF's credit card field-group has the Cardholder Name a single input field, so I can't use that Cardholder Name field. Instead i hid that field with jquery, and added a separate Name field-group, with FirstName and LastName as separate fields.
FUNCTIONS.PHP
Thank you for posting that code.
Tex77, did you ever finish this code out for production? I would love to have a copy of your final version.
@MIke -- Sorry, I never did move that to production. The requirement for enabling a user to update his credit-card info (stored in Authorize.net) was removed from the project.