{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"last-payment-info","type":"basic","slug":"last-payment-info","excerpt":"Contains details about the payment method that the shopper used for their most recent purchase","body":"###Request\nN/A\n\n###Response\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Property Name\",\n \"h-1\": \"Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"`payment-method`\",\n \"0-2\": \"Payment method used for the shopper's most recent purchase. \\n\\nValue can be:\\n* APPLE_PAY\\n* CC\\n* ECP\\n* PAYPAL\\n* SEPA_DIRECT_DEBIT\",\n \"0-1\": \"*string*\",\n \"1-0\": \"`credit-card`\",\n \"1-1\": \"container\",\n \"1-2\": \"Container of [credit-card](doc:credit-card) properties.\\n\\nAppears only if the last payment method was a credit card.\",\n \"2-0\": \"`ecp`\",\n \"2-1\": \"container\",\n \"2-2\": \"Container of ECP properties, including: \\n * `account-type`\\n * `public-account-number`\\n * `public-routing-number`\\n\\nAppears only if the last payment method was ACH/ECP.\",\n \"3-0\": \"`wallet`\",\n \"3-1\": \"container\",\n \"3-2\": \"Container of Apple Pay [wallet](doc:wallet) properties.\\n\\nAppears only if last payment method was APPLE_PAY.\",\n \"4-0\": \"`sepa-direct-debit`\",\n \"4-1\": \"container\",\n \"4-2\": \"Container of [sepa-direct-debit](doc:sepa-direct-debit) properties\\n\\nAppears only if last payment method was SEPA_DIRECT_DEBIT.\"\n },\n \"cols\": 3,\n \"rows\": 5\n}\n[/block]","updates":[],"order":25,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61a5208deadb750070998eb2","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Resources","slug":"resources","order":16,"from_sync":false,"reference":false,"_id":"61a5208deadb750070998e93","version":"61a5208deadb750070998f48","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2015-10-15T16:20:51.519Z","__v":0},"user":"560d5913af97231900938124","parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","version":{"version":"8976-XML","version_clean":"8976.0.0-XML","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["61a5208deadb750070998e87","61a5208deadb750070998e88","61a5208deadb750070998e89","61a5208deadb750070998e8a","61a5208deadb750070998e8b","61a5208deadb750070998e8c","61a5208deadb750070998e8d","61a5208deadb750070998e8e","61a5208deadb750070998e8f","61a5208deadb750070998e90","61a5208deadb750070998e91","61a5208deadb750070998e92","61a5208deadb750070998e93","61a5208deadb750070998e94","61a5208deadb750070998e95","61a5208deadb750070998e96","61a5208deadb750070998e97","61a5208deadb750070998e98","61a5208deadb750070998e99","61a5208deadb750070998e9a"],"_id":"61a5208deadb750070998f48","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"60fed269718a45001c25b4a0","createdAt":"2018-04-24T15:24:22.608Z","releaseDate":"2018-04-24T15:24:22.608Z"},"createdAt":"2016-06-21T18:00:15.670Z","githubsync":"","__v":0}
last-payment-info
Contains details about the payment method that the shopper used for their most recent purchase
Property Name
Type
Description
payment-method
string
Payment method used for the shopper's most recent purchase.
Value can be:
- APPLE_PAY
- CC
- ECP
- PAYPAL
- SEPA_DIRECT_DEBIT
credit-card
container
Container of credit-card properties.
Appears only if the last payment method was a credit card.
ecp
container
Container of ECP properties, including:
account-type
public-account-number
public-routing-number
Appears only if the last payment method was ACH/ECP.
wallet
container
Container of Apple Pay wallet properties.
Appears only if last payment method was APPLE_PAY.
sepa-direct-debit
container
Container of sepa-direct-debit properties
Appears only if last payment method was SEPA_DIRECT_DEBIT.