Created
January 12, 2016 18:39
-
-
Save paladintodd/57def27b30125922218c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local o | |
o = NEWOBJECT("StripeX") | |
o.cAPIKey = "YourAPIKey" | |
IF !o.Authenticate() && Make sure Stripe working | |
?"Auth", "Failed", o.cErrorMessage | |
ELSE | |
?"Good Auth" | |
endif | |
LOCAL lCustomer, lCard | |
lCustomer = "YourCustomerID" | |
lCard = "TheCardIDOnThatCustomer" | |
* Charge a card on file | |
?"Charge", o.ChargeCard(lCustomer, lCard, 1.00, "Stripe Desc", "Statement Desc") | |
?o.cErrorMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment