Fwd: [Rails-core] Getting Stripe Token from form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: [Rails-core] Getting Stripe Token from form

David Merrick



When I submit the form to Stripe

I am generating the stripe token.in 

POST /v1/tokens


Response body
{
"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": "[hidden email]"
}

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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbt1qKb3CKwvB0WFXxo0ZFX7Ya1g9wyMdUgStN8sLLg%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

users_controller.rb (2K) Download Attachment
user.rb (4K) Download Attachment
new.html.erb (340 bytes) Download Attachment
users.js.coffee (1K) Download Attachment
stripe.rb (150 bytes) Download Attachment