Getting Stripe Token from form

When I submit the form to Stripe

I am generating the stripe token.in

POST /v1/tokens

Response body


{

"id": ["tok_1D2tSkISUkCPHLGnqBhLrWr5"](https://dashboard.stripe.com/test/logs?object=tok_1D2tSkISUkCPHLGnqBhLrWr5),

"object": "token",

"card": {

"id": "card_1D2tSkISUkCPHLGnENkY88xy",

"object": "card",

"address_city": null,

"address_country": null,

"address_line1": null,

"address_line1_check": null,

"address_line2": null,

"address_state": null,

"address_zip": null,

"address_zip_check": null,

"brand": "Visa",

"country": "US",

"cvc_check": "unchecked",

"dynamic_last4": null,

"exp_month": 8,

"exp_year": 2018,

"funding": "credit",

"last4": "4242",

"metadata": {

},

"name": null,

"tokenization_method": null

},

"client_ip": "125.239.133.236",

"created": 1535171606,

"livemode": false,

"type": "card",

"used": false

}

but its not showing up in

## POST /v1/customers

Request POST body

{

“email”: “merrickdav@hotmail.com

}

The source variable with the stripe token should show below the email variable.

Any help would be appreciated as I gave some one E.B Adair California Rails job which I could have kept.

Cheers Dave

users_controller.rb (1.62 KB)

user.rb (3.39 KB)

new.html.erb (238 Bytes)

users.js.coffee (814 Bytes)

stripe.rb (107 Bytes)

See amended javascript still no change

users.js.coffee (814 Bytes)

Hello David.

This list is reserved for discussing the development of Ruby on Rails itself. Your best bet to getting help on working with Rails would be Stack Overflow, https://stackoverflow.com/questions/tagged/ruby-on-rails

Good luck!

When I submit the form to Stripe

I am generating the stripe token.in

POST /v1/tokens

Response body


{

"id": ["tok_1D2tSkISUkCPHLGnqBhLrWr5"](https://dashboard.stripe.com/test/logs?object=tok_1D2tSkISUkCPHLGnqBhLrWr5),

"object": "token",

"card": {

"id": "card_1D2tSkISUkCPHLGnENkY88xy",

"object": "card",

"address_city": null,

"address_country": null,

"address_line1": null,

"address_line1_check": null,

"address_line2": null,

"address_state": null,

"address_zip": null,

"address_zip_check": null,

"brand": "Visa",

"country": "US",

"cvc_check": "unchecked",

"dynamic_last4": null,

"exp_month": 8,

"exp_year": 2018,

"funding": "credit",

"last4": "4242",

"metadata": {

},

"name": null,

"tokenization_method": null

},

"client_ip": "125.239.133.236",

"created": 1535171606,

"livemode": false,

"type": "card",

"used": false

}

but its not showing up in

## POST /v1/customers

Request POST body

{

“email”: “merrickdav@hotmail.com

}

The source variable with the stripe token should show below the email variable.

Any help would be appreciated as I gave some one E.B Adair California Rails job which I could have kept.

Cheers Dave

users_controller.rb (1.69 KB)

user.rb (3.5 KB)

new.html.erb (247 Bytes)

users.js.coffee (843 Bytes)

stripe.rb (109 Bytes)

See amended javascript still no change

users.js.coffee (843 Bytes)