Skip to content

Instantly share code, notes, and snippets.

@paladintodd
Created January 12, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paladintodd/57def27b30125922218c to your computer and use it in GitHub Desktop.
Save paladintodd/57def27b30125922218c to your computer and use it in GitHub Desktop.
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