{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"lastPaymentInfo","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\": \"`paymentMethod`\",\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\": \"`creditCard`\",\n \"1-1\": \"*object*\",\n \"1-2\": \"Container of [creditCard](doc:credit-card) properties.\\n\\nAppears only if the last payment method was a credit card.\",\n \"2-0\": \"`ecp`\",\n \"2-1\": \"*object*\",\n \"2-2\": \"Contains ACH/ECP account properties. See [ecp](doc:ecp). \\n \\nAppears only if the last payment method was ECP.\",\n \"3-0\": \"`wallet`\",\n \"3-1\": \"*object*\",\n \"3-2\": \"Contains Apple Pay wallet properties. See [wallet](doc:wallet).\\n\\nAppears only if the last payment method was APPLE_PAY.\",\n \"4-0\": \"`sepaDirectDebit`\",\n \"4-1\": \"*object*\",\n \"4-2\": \"Contains [sepaDirectDebit](doc:sepadirectdebit) properties\\n\\nAppears only if last payment method was SEPA_DIRECT_DEBIT.\"\n },\n \"cols\": 3,\n \"rows\": 5\n}\n[/block]","updates":["5882521c23e6292300c03310","588254df23e6292300c03319","5882559d23e6292300c0331c"],"order":22,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"628531cd1258c8003f6dd200","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"JSON Objects","slug":"resources","order":16,"from_sync":false,"reference":false,"_id":"628531cd1258c8003f6dd1ca","version":"628531cd1258c8003f6dd27d","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2015-10-15T16:20:51.519Z","__v":0},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"version":"8976-JSON","version_clean":"8976.0.0-JSON","codename":"3.42 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["628531cd1258c8003f6dd1bf","628531cd1258c8003f6dd1c0","628531cd1258c8003f6dd1c1","628531cd1258c8003f6dd1c2","628531cd1258c8003f6dd1c3","628531cd1258c8003f6dd1c4","628531cd1258c8003f6dd1c5","628531cd1258c8003f6dd1c6","628531cd1258c8003f6dd1c7","628531cd1258c8003f6dd1c8","628531cd1258c8003f6dd1c9","628531cd1258c8003f6dd1ca","628531cd1258c8003f6dd1cb","628531cd1258c8003f6dd1cc","628531cd1258c8003f6dd1cd","628531cd1258c8003f6dd1ce","628531cd1258c8003f6dd1cf","628531cd1258c8003f6dd1d0","628531cd1258c8003f6dd1d1","628531cd1258c8003f6dd1d2"],"_id":"628531cd1258c8003f6dd27d","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"622783372cd60c003782d77e","createdAt":"2018-04-24T15:22:41.561Z","releaseDate":"2018-04-24T15:22:41.561Z"},"createdAt":"2016-06-21T18:00:15.670Z","githubsync":"","__v":0}
lastPaymentInfo
Contains details about the payment method that the shopper used for their most recent purchase
Property Name
Type
Description
paymentMethod
string
Payment method used for the shopper's most recent purchase.
Value can be:
- APPLE_PAY
- CC
- ECP
- PAYPAL
- SEPA_DIRECT_DEBIT
creditCard
object
Container of creditCard properties.
Appears only if the last payment method was a credit card.
ecp
object
Contains ACH/ECP account properties. See ecp.
Appears only if the last payment method was ECP.
wallet
object
Contains Apple Pay wallet properties. See wallet.
Appears only if the last payment method was APPLE_PAY.
sepaDirectDebit
object
Contains sepaDirectDebit properties
Appears only if last payment method was SEPA_DIRECT_DEBIT.