Created
September 2, 2012 02:18
-
-
Save calvincorreli/3594003 to your computer and use it in GitHub Desktop.
Overview of Spreedly Core API endpoints
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
OPTIONS https://spreedlycore.com/v1/gateways.xml => list supported gateways | |
POST https://spreedlycore.com/v1/gateways.xml => add a gateway | |
GET https://spreedlycore.com/v1/gateways.xml => list all added gateways | |
POST https://spreedlycore.com/v1/gateways/token/purchase.xml => purchase - supply a payment method token also | |
POST https://spreedlycore.com/v1/gateways/token/authorize.xml => authorize - supply a payment method token also | |
POST https://spreedlycore.com/v1/payment_methods => Capture credit card from form - transparent redirect magic | |
GET https://spreedlycore.com/v1/payment_methods.xml => list all retained credit cards | |
POST https://spreedlycore.com/v1/payment_methods/token/retain.xml => Store credit card info | |
POST https://spreedlycore.com/v1/payment_methods/token/redact.xml => Remove credit card info | |
POST https://spreedlycore.com/v1/payment_methods/token.xml => Update non-sensitive info about a credit card | |
POST https://spreedlycore.com/v1/transactions/token/capture.xml => capture | |
POST https://spreedlycore.com/v1/transactions/token/void.xml => void | |
POST https://spreedlycore.com/v1/transactions/token/credit.xml => credit | |
POST https://spreedlycore.com/v1/transactions/token/purchase.xml => purchase using reference transaction | |
Normal flow: | |
Form -> POST -> Redirect -> Call Purchase API -> Success | |
Offsite flow: | |
Form -> POST -> Redirect -> Call Purchase API -> Redirect to checkout_url -> Redirect URL OR callback received -> Lookup transaction to check for success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment