Last active
August 29, 2015 14:20
-
-
Save Zettersten/b705b8a618aee59eae04 to your computer and use it in GitHub Desktop.
'Adapter' - Create Account
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
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Create Payment Instrument | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ | |
"createPaymentInstrument" : { | |
"createPaymentInstrumentRequest" : { | |
"token" : "... Enter Token ...", | |
"account": "http://your.com/uri", | |
"name" : "Test User", | |
"properties" : { | |
"cardNumber" : "4012111111111111", // required | |
"expirationDate" : "12/2018", // required | |
"cvv" : "999", // required | |
"nameOnCard" : "Test User" // required | |
}, | |
"billingAddress" : { | |
"addressLine1" : "", // required | |
"postalCode" : "", // required | |
"city" : "", | |
"state" : "" | |
} | |
} | |
} | |
} | |
/* | |
* Response Body | |
*/ | |
{ | |
"createPaymentInstrumentResponse":{ | |
"paymentInstrumentRef": "... Your New Payment Instrument Account ...", | |
"transactionReferenceCode": "d4ee2e03-35d8-4c6b-a276-60ac116e5967" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment