Skip to content

Instantly share code, notes, and snippets.

@pedrinho
Created August 3, 2019 18:41
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 pedrinho/54fa7be0fe6ffb5847599156640accd7 to your computer and use it in GitHub Desktop.
Save pedrinho/54fa7be0fe6ffb5847599156640accd7 to your computer and use it in GitHub Desktop.
Return of Braintree Create Customer SDK call
{
"customer": {
"id": "567978826",
"merchantId": "zkqwqvz29rv5rd82",
"firstName": null,
"lastName": null,
"company": null,
"email": null,
"phone": null,
"fax": null,
"website": null,
"createdAt": "2019-08-03T17:39:38Z",
"updatedAt": "2019-08-03T17:39:39Z",
"customFields": "",
"globalId": "Y3VzdG9tZXJfNTY3OTc4ODI2",
"creditCards": [],
"paypalAccounts": [
{
"billingAgreementId": "B-7M2130485Y441825S",
"createdAt": "2019-08-03T17:39:39Z",
"customerId": "567978826",
"default": true,
"email": "buyer@shipsmart.com.br",
"globalId": "cGF5bWVudG1ldGhvZF9wcF83eWZqNmY",
"imageUrl": "https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=sandbox",
"subscriptions": [],
"token": "7yfj6f",
"updatedAt": "2019-08-03T17:39:39Z",
"isChannelInitiated": false,
"payerId": "6XMCZV4LTGZ92",
"payerInfo": {
"shippingAddress": {
"line1": "1234 Rua Main",
"city": "Rio De Janeiro",
"state": "RJ",
"postalCode": "22021-001",
"countryCode": "BR"
},
"email": "buyer@shipsmart.com.br",
"firstName": "Pedro",
"lastName": "Scarapicchia",
"payerId": "6XMCZV4LTGZ92",
"countryCode": "BR"
},
"limitedUseOrderId": null,
"revokedAt": null
}
],
"addresses": [],
"paymentMethods": [
{
"billingAgreementId": "B-7M2130485Y441825S",
"createdAt": "2019-08-03T17:39:39Z",
"customerId": "567978826",
"default": true,
"email": "buyer@shipsmart.com.br",
"globalId": "cGF5bWVudG1ldGhvZF9wcF83eWZqNmY",
"imageUrl": "https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=sandbox",
"subscriptions": [],
"token": "7yfj6f",
"updatedAt": "2019-08-03T17:39:39Z",
"isChannelInitiated": false,
"payerId": "6XMCZV4LTGZ92",
"payerInfo": {
"shippingAddress": {
"line1": "1234 Rua Main",
"city": "Rio De Janeiro",
"state": "RJ",
"postalCode": "22021-001",
"countryCode": "BR"
},
"email": "buyer@shipsmart.com.br",
"firstName": "Pedro",
"lastName": "Scarapicchia",
"payerId": "6XMCZV4LTGZ92",
"countryCode": "BR"
},
"limitedUseOrderId": null,
"revokedAt": null
}
]
},
"success": true
}
//https://developers.braintreepayments.com/reference/request/customer/create/node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment