recurly / recurly-client-php

Recurly PHP Client
http://recurly.com
MIT License
172 stars 93 forks source link

Missing params to create a purchase? #778

Open manuelmdn opened 1 year ago

manuelmdn commented 1 year ago

I'm trying to create a purchase but I receive the following error

Account billing info: Country is not a valid 2 letter iso 3166 country code

image

but if I add the billing country info shows this error

No other billing_info attributes are allowed when a token_id is provided.

image

Is there something I'm missing?

I'm using PHP 7.4.33 Recurly: recurly/recurly-client": "^4.37"

I'm following the next guides https://recurly.com/developers/guides/purchases.html https://recurly.com/developers/api/v2021-02-25/index.html#operation/create_purchase

douglasmiller commented 1 year ago

@manuelmdn, it is accurate that you cannot submit additional billing info properties while submitting a billing info token that was created with recurly.js. Are you specifying the country code in the form that you are using to create your recurly.js token?