{"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":23,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5f43d7f192d43e01ff6f1139","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Resources","slug":"resources","order":16,"from_sync":false,"reference":false,"_id":"5f43d7f192d43e01ff6f111c","version":"5f43d7f192d43e01ff6f11c2","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.35 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5f43d7f192d43e01ff6f1110","5f43d7f192d43e01ff6f1111","5f43d7f192d43e01ff6f1112","5f43d7f192d43e01ff6f1113","5f43d7f192d43e01ff6f1114","5f43d7f192d43e01ff6f1115","5f43d7f192d43e01ff6f1116","5f43d7f192d43e01ff6f1117","5f43d7f192d43e01ff6f1118","5f43d7f192d43e01ff6f1119","5f43d7f192d43e01ff6f111a","5f43d7f192d43e01ff6f111b","5f43d7f192d43e01ff6f111c","5f43d7f192d43e01ff6f111d","5f43d7f192d43e01ff6f111e","5f43d7f192d43e01ff6f111f","5f43d7f192d43e01ff6f1120","5f43d7f192d43e01ff6f1121","5f47e410bd05ef0011069965"],"_id":"5f43d7f192d43e01ff6f11c2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"forked_from":"5ed5174637c3c607440c0a3c","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

Request

N/A

Response

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.