Posted by user Jons:
I'm not passing address info in, and I noticed that the country is being set in payload - the default: 'US'.
I'm not in US. Can this be null or should it be set to UK etc?
Payload extract (from transaction record)
1392375950] => {
"id": "ch_103UjF2AGXMjWmxxxxx",
"object": "charge",
"created": 1392375952,
"livemode": false,
"paid": true,
"amount": 19900,
"currency": "gbp",
"refunded": false,
"card": {
"id": "card_103UjF2AGXMjWxxxxx",
"object": "card",
"last4": "4242",
"type": "Visa",
"exp_month": 2,
"exp_year": 2014,
"fingerprint": "Z21UwVYxxxxx",
"customer": null,
"country": "US",
"name": "S ssss1",
"address_line1": "undefined",
"address_line2": "undefined",
"address_city": null,
"address_state": "unde...
Comments
Comment #1
aviindub commentedComment #2
aviindub commentedComment #3
aviindub commentedJons - I don't see anywhere that our module is setting a default value for that field. It is possible that this is coming from stripe when the token is generated, but i doubt they would set a default country if you supplied none.
My guess would be that you have a hidden country field in your checkout form, and it is set to US.
Comment #4
jons commentedThis is actually the correct response for this test card (which I realised, and is confirmed by Stripe)