shopify api账单地址与送货地址不同

时间:2016-04-22 11:13:33

标签: php api shopify

我正在使用shopifys api,我遇到了这个问题,我知道shopify使用帐单地址国家来验证信用卡交易,因此帐单地址国家/地区必须与信用卡发卡行国家匹配,就像它是在这个shopify论坛帖子https://ecommerce.shopify.com/c/payments-shipping-fulfilment/t/need-help-with-shipping-billing-address-at-checkout-263790中说,但我的问题是我发现我无法创建订单是发货地址国家/地区字段与信用卡发卡行国家不同,api返回错误422不可处理的实体我这样做,这里是示例调用api。

{
    "referring_site": "customLaravelShop.dev",
    "customer": {
        "first_name":"victor",
        "last_name":"alvarez",
        "email":"example@gmail.com"
    },
    "billing_address": {
        "first_name":"victor",
        "last_name":"alvarez",
        "address1":"qwerty",
        "phone":"+5812345678",
        "city":"london",
        "country":"IRELAND", // THIS SHOULD BE THE SAME COUNTRY AS THE THE CREDIT CARD ISSUER
        "zip":"1111"
    },
    "shipping_address": {
        "first_name":"victor",
        "last_name":"alvarez",
        "address1":"qwerty",
        "phone":"+584123607361",
        "city":"london",
        "country":"ENGLAND", // HERE IT LOOKS LIKE THE SHIPPING ADDRESS COUNTRY SHOULD BE THE SAME AS THE CREDIT CARD ISSUER
        "zip":"1111"
    },
    "email":"example@gmail.com",
    "line_items":[
        {
            "variant_id":11111111,
            "quantity":"1",
            "requires_shipping":true,
            "variant_title":"Default Title",
            "grams":1000
        }
    ],
    "note_attributes":[
        {
            "name":"Apron Polka Dot Check",
            "value":"Default Title x 1"
        }
    ],
    "shipping_lines":[
        {
            "code":"Shipping required",
            "price":"6.50",
            "title":"Shipping info"
        }
    ],
    "total_weight":1000,
    "subtotal_pricce":19.99,
    "total_price":"26.49",
    "order_number":"EXAMPLE-REALEX-ORDER-NUMBER-1234",
    "payment_gateway_names":["realex"],
    "processing_method":"realex",
    "reference":"EXAMPLE-REALEX-ORDER-REFERENCE-1234",
    "financial_status":"paid",
    "send_receipt":false,
    "transactions":[
        {
            "kind":"sale",
            "status":"success",
            "amount":"26.49",
            "gateway":"realex"
        }
    ]
}

我不确定我是否遗漏了某些内容,但我认为发货地址国家/地区字段不应与信用卡发卡行国家/地区相关,我可以理解,结算地址国家/地区必须与信用卡发卡国家,但结算和运输是两个非常不同的事情,不能以这种方式相互关联

0 个答案:

没有答案