Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Configuring accepted cards breaks #32

Closed
jbt opened this Issue · 1 comment

2 participants

@jbt

using $.extend to update config means that trying to configure any fewer than four card types in acceptedCards will only update the first few, and won't alter the length of the array.

For example, calling Recurly.config({ acceptedCards: ['visa'] }) will change Recurly.settings.acceptedCards to ['visa', 'discover', 'mastercard', 'visa'] rather than just ['visa']

@shermany

You are correct - however it is for that reason that acceptedCards is not documented as an available option for Recurly.config. See here in the docs:

http://docs.recurly.com/api/recurlyjs/reference#js-config

It should be used with the form building functions.

@shermany shermany closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.