Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 1 addition & 10 deletions processout/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,9 +1021,6 @@ def authenticate(self, source, options={}):
data = {
'device': self.device,
'incremental': self.incremental,
'capture_type': self.capture_type,
'split_allocations': self.split_allocations,
'installment_plan_id': self.installment_plan_id,
'synchronous': options.get("synchronous"),
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
'capture_amount': options.get("capture_amount"),
Expand Down Expand Up @@ -1090,9 +1087,6 @@ def authorize(self, source, options={}):
data = {
'device': self.device,
'incremental': self.incremental,
'capture_type': self.capture_type,
'split_allocations': self.split_allocations,
'installment_plan_id': self.installment_plan_id,
'synchronous': options.get("synchronous"),
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
'capture_amount': options.get("capture_amount"),
Expand Down Expand Up @@ -1133,9 +1127,7 @@ def capture(self, source, options={}):
path = "/invoices/" + quote_plus(self.id) + "/capture"
data = {
'device': self.device,
'authenticate_only': self.authenticate_only,
'incremental': self.incremental,
'installment_plan_id': self.installment_plan_id,
'authorize_only': options.get("authorize_only"),
'synchronous': options.get("synchronous"),
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
Expand Down Expand Up @@ -1450,8 +1442,7 @@ def create(self, options={}):
'unsupported_feature_bypass': self.unsupported_feature_bypass,
'verification': self.verification,
'auto_capture_at': self.auto_capture_at,
'expires_at': self.expires_at,
'split_allocations': self.split_allocations
'expires_at': self.expires_at
}

response = Response(request.post(path, data, options))
Expand Down
2 changes: 0 additions & 2 deletions processout/refund.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def create_for_invoice(self, invoice_id, options={}):
'reason': self.reason,
'information': self.information,
'invoice_detail_ids': self.invoice_detail_ids,
'split_allocations': self.split_allocations,
'metadata': options.get("metadata")
}

Expand Down Expand Up @@ -320,7 +319,6 @@ def create(self, options={}):
'reason': self.reason,
'information': self.information,
'invoice_detail_ids': self.invoice_detail_ids,
'split_allocations': self.split_allocations,
'metadata': options.get("metadata")
}

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
setup(
name = 'processout',
packages = ['processout', 'processout.errors', 'processout.networking'],
version = '9.0.0',
version = '9.0.1',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/processout/processout-python/tarball/9.0.0',
download_url = 'https://github.com/processout/processout-python/tarball/9.0.1',
keywords = ['ProcessOut', 'api', 'bindings'],
classifiers = [],
)
13 changes: 0 additions & 13 deletions spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ def main():
# Fetch the customers
client.new_customer().all()

# Create a subscription for a customer
customer = client.new_customer().create()
assert customer.id != "", "The created customer ID should not be empty"

subscription = client.new_subscription({
"customer_id": customer.id,
"name": "Test subscription",
"amount": "9.99",
"currency": "USD",
"interval": "1d"
}).create()
assert subscription.id != "", "The created subscription ID should not be empty"

# Expand a customers' project and fetch gateways
customer = client.new_customer().create({"expand": ["project"]})
assert customer.project != None, "The customer project should be expanded"
Expand Down