Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions blockchain_integration/pi_network/payment_gateways/stripe.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import stripe


class StripePaymentGateway:
def __init__(self, secret_key):
self.secret_key = secret_key
stripe.api_key = secret_key

def create_charge(self, amount, currency, source):
charge = stripe.Charge.create(
amount=int(amount * 100),
currency=currency,
source=source
amount=int(amount * 100), currency=currency, source=source
)
return charge