{"_id":"5b196f345952df0003e8a61f","category":{"_id":"5b196f335952df0003e8a5df","version":"5b196f345952df0003e8a66c","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:20:51.519Z","from_sync":false,"order":11,"slug":"resources","title":"JSON Objects"},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"_id":"5b196f345952df0003e8a66c","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5adf4bc1bfc2320003a36617","createdAt":"2018-04-24T15:22:41.561Z","releaseDate":"2018-04-24T15:22:41.561Z","categories":["5b196f335952df0003e8a5d4","5b196f335952df0003e8a5d5","5b196f335952df0003e8a5d6","5b196f335952df0003e8a5d7","5b196f335952df0003e8a5d8","5b196f335952df0003e8a5d9","5b196f335952df0003e8a5da","5b196f335952df0003e8a5db","5b196f335952df0003e8a5dc","5b196f335952df0003e8a5dd","5b196f335952df0003e8a5de","5b196f335952df0003e8a5df","5b196f335952df0003e8a5e0","5b196f335952df0003e8a5e1","5b196f335952df0003e8a5e2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.26 Release","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-27T11:30:56.000Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":23,"body":"###Request\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Required\",\n    \"0-0\": \"`creditCardInfo`\",\n    \"0-1\": \"*object*\",\n    \"h-3\": \"Description\",\n    \"0-3\": \"Object containing the following:\\n\\n* [billingContactInfo](doc:billing-contact-info) *object* optional\\n\\n* [creditCard](doc:credit-card) *object*\\n\\n* `pfToken` *string* - Required if using Hosted Payment Fields. Do not include `creditCard` object if using this token.\",\n    \"0-2\": \"**Required** for credit cards\",\n    \"2-0\": \"`sepaDirectDebitInfo`\",\n    \"2-1\": \"*object*\",\n    \"2-2\": \"**Required** for SEPA Direct Debit\",\n    \"2-3\": \"See [sepaDirectDebitInfo](doc:sepadirectdebitinfo).\",\n    \"1-0\": \"`ecpInfo`\",\n    \"1-1\": \"*object*\",\n    \"1-2\": \"**Required** for ACH/ECP\",\n    \"1-3\": \"See [ecpInfo](doc:ecp-info).\",\n    \"3-0\": \"`wallet`\",\n    \"3-1\": \"*object*\",\n    \"3-2\": \"**Required** for Apple Pay\",\n    \"3-3\": \"See [wallet](doc:wallet).\"\n  },\n  \"cols\": 4,\n  \"rows\": 4\n}\n[/block]\n###Response\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`creditCardInfo`\",\n    \"0-1\": \"*object*\",\n    \"0-2\": \"Object containing the following:\\n \\n  * [billingContactInfo](doc:billing-contact-info) *object* \\n\\n  * [creditCard](doc:credit-card) *object*\",\n    \"2-0\": \"`sepaDirectDebitInfo`\",\n    \"2-1\": \"*object*\",\n    \"2-2\": \"See [sepaDirectDebitInfo](doc:sepadirectdebitinfo).\",\n    \"1-0\": \"`ecpInfo`\",\n    \"1-1\": \"*object*\",\n    \"1-2\": \"See [ecpInfo](doc:ecp-info).\",\n    \"3-0\": \"`wallet`\",\n    \"3-1\": \"*object*\",\n    \"3-2\": \"See [wallet](doc:wallet).\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]","excerpt":"Contains payment information for subscriptions","slug":"payment-source","type":"basic","title":"paymentSource"}

paymentSource

Contains payment information for subscriptions

Request

Property Name
Type
Required
Description

creditCardInfo

object

Required for credit cards

Object containing the following:

  • billingContactInfo object optional

  • creditCard object

  • pfToken string - Required if using Hosted Payment Fields. Do not include creditCard object if using this token.

ecpInfo

object

Required for ACH/ECP

See ecpInfo.

sepaDirectDebitInfo

object

Required for SEPA Direct Debit

wallet

object

Required for Apple Pay

See wallet.

Response

Property Name
Type
Description

creditCardInfo

object

Object containing the following:

ecpInfo

object

See ecpInfo.

sepaDirectDebitInfo

object

wallet

object

See wallet.