Skip to content

Conversation

chrissrogers
Copy link
Member

@chrissrogers chrissrogers commented Jun 15, 2016

  • If a coupon code was pre-populated into a priced field, it was not initially added to the pricing instance structure
  • Removes pricing.binding alias for pricing.attach. It had been deprecated since Recurly.js v3 alpha phases
  • Adds tests around pricing attachment
Repro steps
  • Create a Recurly.js form with pricing and coupon input via form attachment
  • Pre-populate a coupon field with a valid coupon code
  • The pricing instance should take the coupon code into effect from the initial attachment

- If a coupon code was pre-populated into a priced field, it was not initially added to the pricing instance structure
- Removes `pricing.binding` alias for `pricing.attach`. It had been deprecated since Recurly.js v3 alpha phases.

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
@chrissrogers chrissrogers force-pushed the pricing-attach-init branch from 3126462 to 49ec348 Compare June 15, 2016 03:35
- Reorganizes pricing tests
- Adds attachment test for pre-populated coupons
- s/detatch/detach

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
@chrissrogers chrissrogers force-pushed the pricing-attach-init branch from 49ec348 to 5feb0d8 Compare June 15, 2016 03:36
* @deprecated
*/

exports.binding = attach;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was about time this went away

@jayseeg
Copy link
Contributor

jayseeg commented Jun 16, 2016

+1

@jayseeg jayseeg merged commit a84da7b into master Jun 16, 2016
@jayseeg jayseeg deleted the pricing-attach-init branch June 16, 2016 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants