1
我試圖保存卡信息並同時創建客戶。客戶端應用程序創建一個隨機數,並將其發送到我的服務器(的NodeJS),我稱之爲:Braintree PAyment創建客戶並保存付款方式
gateway.customer.create({paymentMethodNonce: request.params.nonce})
客戶得到創建和我得到一個客戶ID,我保存在數據庫中。但調用
gateway.customer.find(customer_id):`
回報:
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: [] }
其中有空付款方式排列。我正在使用UI中的下拉菜單,只需要輸入卡號和日期。這也是一個沙箱帳戶。