Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @order = {
- :id => "somestringid",
- :user_id => "someotherstringid",
- :amount => 19.99,
- :metadata => [
- {
- :type => :shipping_data,
- :address => "line 1 of address, line 2 of address, city, state, pincode"
- },
- {
- :type => :payment,
- :stripe_customer_id => "somestringid",
- :stripe_card_id => "someotherstringid"
- },
- {
- :type => :contact,
- :email => "someone@example.com",
- :phone => "1231231231"
- }
- ]
- }
- {
- "id": "somestringid",
- "user_id": "someotherstringid",
- "amount": 19.99,
- "metadata": [
- {
- "type": "shipping_data",
- "address": "line 1 of address, line 2 of address, city, state, pincode"
- },
- {
- "type": "payment",
- "stripe_customer_id": "somestringid",
- "stripe_card_id": "someotherstringid"
- },
- {
- "type": "contact",
- "email": "someone@example.com",
- "phone": "1231231231"
- }
- ]
- }
Add Comment
Please, Sign In to add comment