I am trying to save the card information and create customer at same time. The client app creates a nonce and sends it to my server (nodejs) and I call:
gateway.customer.create({paymentMethodNonce: request.params.nonce})
The customer gets created and I get a customer ID, I save that in the db. But calling
gateway.customer.find(customer_id):`
returns:
Customer {
id: '697983269',
merchantId: 'yzkvrqy9qsctn69d',
firstName: null,
lastName: null,
company: null,
email: null,
phone: null,
fax: null,
website: null,
createdAt: '2017-09-25T00:37:29Z',
updatedAt: '2017-09-25T00:37:29Z',
customFields: '',
creditCards: [],
addresses: [],
paymentMethods: [] }
Which has empty payment method array. I am using the drop in UI that only asks for card number and exp date. This is also a sandbox account.