如何在添加单个客户的同时添加多个付款资料?

时间:2018-12-28 03:48:59

标签: authorize.net

当我使用json flavour创建用户时,使用沙盒密钥和事务ID。这个api会回应我的customerProfileId和customerPaymentProfileIdList,在列表中有一个ID。我们可以创建倍数吗?如果是,那么我必须发送以生成多个customerPaymentProfileIds的json字符串是什么。如果没有,那么请解释为什么我不将数组发送到api。或如何使用authrization.net创建多个付款资料。

现在我正在发送此json:-

{
  "createCustomerProfileRequest": {
    "merchantAuthentication": {
        "name": "name",
        "transactionKey": "transaction_key"
    },
    "profile": {
        "merchantCustomerId": "This is a+fdstring",
        "description": "This is a description.",
        "email": "RuldaRam@gmail.com",
        "paymentProfiles": {
            "customerType": "individual",
            "billTo":{
                "firstName":"Puneet",
                "lastName":"Jindal",
                "address":"Mohali",
                "city":"Banglore",
                "state":"Delhi",
                "zip":"10001"
            },
            "payment": {
                "creditCard": {
                    "cardNumber": "4111111111111111",
                    "expirationDate": "2020-12",
                    "cardCode":"123"
                }
            }
        }
    },
    "validationMode": "testMode"
  }
}

开发者link

我也尝试像this

那样做

0 个答案:

没有答案