无法使用json将数据发送到服务器

时间:2015-05-20 12:43:04

标签: ajax json

我正在电子商店中设置新的付款方式。 要求是: URL: POST https://payparts2.privatbank.ua/ipp/v2/payment/create server-server Headers Accept: application/json; Accept-Encoding: UTF-8; Content-Type: application/json; charset=UTF-8; Body { "storeId": "", "orderId": "", "amount": 300.00, "currency": "980", "partsCount": 6, "merchantType": "PP", "products": [ { "name": "TV", "count": 2, "price": 100.00 }, { "name": "microwave", "count": 1, "price": 200.00 } ], "responseUrl": "http://shop.com/response", "redirectUrl": "http://shop.com/redirect", "signature": ""
}

这是我的代码:
http://jsfiddle.net/olga_smelo/hasb5kkr/9/

我有一个错误:

FAILContent type'application / x-www-form-urlencoded; charset = UTF-8'not supporteduk_UA

,但是我在ajax中设置了“内容类型”为“application / json”

请帮帮我!

0 个答案:

没有答案