有一种方法可以获得所有卡的列表:
gateway.creditCard.expiringBetween(year1900, year2100, function (err, result) {...})
然后为每张卡调用 paymentMethod.find . 但我想在一次通话中获得与客户相关的所有付款方式,这可能吗?
paymentMethod.find
我在布伦特里工作 . 如果您有更多问题,可以随时与我们的支持团队联系 .
客户使用其所有付款方式序列化 .
那么,get the customer然后get the credit cards and paypal accounts from it:
gateway.customer.find("theCustomerId", function(err, customer) { var payment_methods = customer.creditCards.concat(customer.paypalAccounts); });
我想是的 . gateway.customer.find 返回一个属性为 creditCards 的对象,这在文档中并不明显 .
gateway.customer.find
creditCards
2 回答
我在布伦特里工作 . 如果您有更多问题,可以随时与我们的支持团队联系 .
客户使用其所有付款方式序列化 .
那么,get the customer然后get the credit cards and paypal accounts from it:
我想是的 .
gateway.customer.find
返回一个属性为creditCards
的对象,这在文档中并不明显 .