Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import santander


class SantanderPaymentGateway:
def __init__(self, api_key, api_secret):
self.api_key = api_key
self.api_secret = api_secret
santander.Configuration.configure(api_key, api_secret)

def create_payment(self, amount, currency):
payment = santander.Payment.create({
'amount': amount,
'currency': currency
})
payment = santander.Payment.create({"amount": amount, "currency": currency})
return payment