{"_id":"59a45d2cd12e81000f842f44","category":{"_id":"59a45d2bd12e81000f842eee","version":"59a45d2bd12e81000f842ee2","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"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:12:59.168Z","releaseDate":"2017-08-28T18:12:59.168Z","categories":["59a45d2bd12e81000f842ee3","59a45d2bd12e81000f842ee4","59a45d2bd12e81000f842ee5","59a45d2bd12e81000f842ee6","59a45d2bd12e81000f842ee7","59a45d2bd12e81000f842ee8","59a45d2bd12e81000f842ee9","59a45d2bd12e81000f842eea","59a45d2bd12e81000f842eeb","59a45d2bd12e81000f842eec","59a45d2bd12e81000f842eed","59a45d2bd12e81000f842eee","59a45d2bd12e81000f842eef","59a45d2bd12e81000f842ef0","59a45d2bd12e81000f842ef1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":["5882521c23e6292300c03310","588254df23e6292300c03319","5882559d23e6292300c0331c"],"next":{"pages":[],"description":""},"createdAt":"2016-06-21T18:00:15.670Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":62,"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]","excerpt":"Contains details about the payment method that the shopper used for their most recent purchase","slug":"last-payment-info","type":"basic","title":"lastPaymentInfo"}

lastPaymentInfo

Contains details about the payment method that the shopper used for their most recent purchase

Request

N/A

Response

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.