Skip to content

Commit 8cb46d2

Browse files
author
Manuel Huez
committed
Improve source and coupon handling on subscriptions
1 parent 1da259a commit 8cb46d2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

processout/subscription.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def create(self, customer_id, options = {}):
652652
'return_url': self.return_url,
653653
'cancel_url': self.cancel_url,
654654
'source': options.get("source"),
655-
'prorate': options.get("prorate"),
655+
'coupon_id': options.get("coupon_id"),
656656
'customer_id': customer_id
657657
}
658658

@@ -690,6 +690,7 @@ def create_from_plan(self, customer_id, plan_id, options = {}):
690690
'return_url': self.return_url,
691691
'cancel_url': self.cancel_url,
692692
'source': options.get("source"),
693+
'coupon_id': options.get("coupon_id"),
693694
'customer_id': customer_id,
694695
'plan_id': plan_id
695696
}

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name = 'processout',
55
packages = ['processout', 'processout.errors', 'processout.networking'],
6-
version = '5.2.1',
6+
version = '5.2.2',
77
description = 'ProcessOut API bindings.',
88
author = 'ProcessOut',
99
author_email = '[email protected]',
1010
url = 'https://github.com/processout/processout-python',
11-
download_url = 'https://github.com/processout/processout-python/tarball/5.2.1',
11+
download_url = 'https://github.com/processout/processout-python/tarball/5.2.2',
1212
keywords = ['ProcessOut', 'api', 'bindings'],
1313
classifiers = [],
1414
)

0 commit comments

Comments
 (0)