In order to create a payment method for a user, you must pass either the user's email address or their monthly account id. You must also pass a valid PaymentMethod object. A PaymentMethod object has two key dependencies: 1) a CardConnect paymentToken and 2) a valid UserAddress. Both must be created before sending a PaymentMethod.
- Creating a CardConnect token:https://help.valet-manager.com/support/solutions/articles/8000093348-creating-a-cardconnect-token
- Creating a UserAddress:https://help.valet-manager.com/support/solutions/articles/8000093346-creating-an-address-for-a-user
Please ensure ecommerce="CARDCONNECT" and ecommerceMode="PROD".
A PaymentMethod object:
Please ensure ecommerce="CARDCONNECT" and ecommerceMode="PROD".
bankAcocuntNumber and bankRoutingNumber should be ignored for cardConnect integrations.
A sample response:
{
"channels":[],
"id":"paymentMethod::059abd00-6735-44c2-bde9-1e3140ad02f6",
"userId":"MonthlyAccount::e3f81995-1f7d-4450-adbb-2f3ca2b6ef0b",
"creationDate":"2021-05-07T00:28:32.163Z",
"paymentType":"CREDITCARD",
"paymentMethodName":"JOHN AMEX",
"creditCardHolderName":"JOHN PAYNE",
"creditCardType":"Visa",
"creditCardPAN":"1111",
"paymentToken":"9413832844511111",
"creditCardExpirationDate":"09/24",
"creditCardCVV":"***",
"creditCardCompanyName":"",
"bankAccountNumber":"",
"bankRoutingNumber":"",
"bankAccountType":"SAVINGS",
"defaultPaymentMethod":true,
"addressId":"address::adbffcd0-b7f9-4cdf-b068-aae0da71bcf2",
"error":false,
"errorMessage":"",
"errorDateTime":"2021-05-07T00:28:32.163Z",
"isSaveCard":false,
"garageId":"8f78d4532cc7559927a9a9102d1d2e73",
"driversLicense":"",
"driversLicenseState":"",
"ecommerce":"CARDCONNECT",
"ecommerceMode":"PROD",
"creditCardExpirationDateWithoutSlash":"0924",
"creditCardPANWithoutSpace":"1111",
"class":"paymentMethod"
}
