Form values on recurlyJS payment form are always empty in the submit handler

Created on 1 November 2023, over 1 year ago
Updated 2 November 2023, over 1 year ago

Problem/Motivation

The name and address field values are always empty on the recurlyJS payment form.

This is due to an after_build callback on each field element to removeElementName which removes the elements name attribute. because this is missing there is never any value for this field in the submit handler.

In the submit handler we use first_name and last_name when creating a new recurly account, but because these are empty, the new account doesn't have any name associated with it.

There is a @todo figure out if this is still a requirement. note on this function
I do not think it is a requirement. If I remove it, my transaction is successful and the new account has the First and Last name correctly.

Steps to reproduce

Create a new account and subscription using recurlyjs.
in Recurly, the name fields on the new account are empty.

Proposed resolution

Remove the after_build call back from the recurlyJS form fields.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024