Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import stripe
- stripe.api_key = "sk_test_sUxmXOcI4odtOAEQOZlIh8Qs"
- stripe.Token.create(
- card={
- "number": '4242424242424242',
- "exp_month": 12,
- "exp_year": 2018,
- "cvc": '123'
- },
- )
- stripe.Customer.create(
- description="test test test",
- source="tok_visa"
- )
- stripe.Subscription.create(
- customer="id",
- items=[
- {
- "plan": "1",
- },
- ],
- )
- exit()
Advertisement
Add Comment
Please, Sign In to add comment