changeset 452:56c23aa70045 0.7

Add cancel_subscription() function to Stripe customer.
author Hugo Teixeira <hugo.tech@gmail.com>
date Tue, 05 May 2015 18:15:21 -0300
parents d62c35a5cd6b
children 99b0d9333483
files stripe/src/luan/modules/stripe/Stripe.luan
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r d62c35a5cd6b -r 56c23aa70045 stripe/src/luan/modules/stripe/Stripe.luan
--- a/stripe/src/luan/modules/stripe/Stripe.luan	Mon May 04 23:44:25 2015 -0600
+++ b/stripe/src/luan/modules/stripe/Stripe.luan	Tue May 05 18:15:21 2015 -0300
@@ -33,6 +33,11 @@
 		return s and s.getStatus()
 	end
 
+	function this.cancel_subscription()
+		local s = subscription()
+		s and s.cancel(nil)
+	end
+
 	return this
 end