Skip to content

Instantly share code, notes, and snippets.

@dashdanw
Created August 16, 2016 18:02
Show Gist options
  • Save dashdanw/0ad26401734d2db2b9d231c757d13317 to your computer and use it in GitHub Desktop.
Save dashdanw/0ad26401734d2db2b9d231c757d13317 to your computer and use it in GitHub Desktop.
charge = stripe.Charge.create(
amount=amount,
currency="usd",
application_fee=application_fee,
source=order.payment.token, #card_XXXXXXXX
#doesnt work as card='card_XXXXXXX' either
customer=order.buyer.token, #cust_XXXXXXXX
destination=order.seller.token #acct_XXXXXXXX
)
charge = stripe.Charge.create(
amount=amount,
currency="usd",
application_fee=application_fee,
source=order.payment.token, #card_XXXXXXXX
#doesnt work as card='card_XXXXXXX' either
customer=order.buyer.token, #cust_XXXXXXXX
destination=order.seller.token #acct_XXXXXXXX
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment