当前位置 : 主页 > 网页制作 > xml >

Worldpay Direct XML

来源:互联网 收集:自由互联 发布时间:2021-06-13
当我将 XML提交到 https://secure-test.WorldPay.com/jsp/merchant/xml/paymentService.jsp时: ?xml version="1.0" encoding="ISO-8859-1" standalone="no"? !DOCTYPE paymentService PUBLIC "-//WorldPay/DTD WorldPay PaymentService v1//EN" "htt
当我将 XML提交到 https://secure-test.WorldPay.com/jsp/merchant/xml/paymentService.jsp时:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> <!DOCTYPE paymentService PUBLIC "-//WorldPay/DTD WorldPay PaymentService v1//EN" "http://dtd.worldpay.com/paymentService_v1.dtd"><paymentService version="1.4" merchantCode="WPACC48193806"> <submit> <order orderCode="AU-1746976-13714703"> <description>Personalised Working Holiday Guide to Australia/Working Holiday, Account No. AU-13714703</description> <amount value="3000" currencyCode="GBP" exponent="2"/> <paymentDetails> <VISA-SSL> <cardNumber>4917610000000000</cardNumber> <expiryDate> <date month="5" year="2022"/> </expiryDate> <cardHolderName>Nguyen Quang</cardHolderName> <cvc>234</cvc> <cardAddress> <address> <street>abc,abc,abnc</street> <postalCode>1000</postalCode> <city>323.84</city> <countryCode>GB</countryCode> <telephoneNumber>+44</telephoneNumber> </address> </cardAddress> </VISA-SSL> <session shopperIPAddress="164.194.163.93" id="186002" /> </paymentDetails> <shopper> <shopperEmailAddress>quang021@ekabiz.vn</shopperEmailAddress> <browser> <acceptHeader>text/html</acceptHeader> <userAgentHeader>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E)</userAgentHeader> </browser> </shopper> </order> </submit> </paymentService>

当我运行它时,这是输出:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN"
                                "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="WPACC48193806"><reply><orderStatus orderCode="AU-1746976-13714703"><error code="7"><![CDATA[Payment Method VISA_CREDIT-SSL is unknown; The Payment Method is not available.]]></error></orderStatus></reply></paymentService>

文档说要为您的Worldpay帐户添加您的IP地址,我认为我已经正确完成了.

由于我遇到了同样的问题,我提出了一个老问题,对我们来说,问题是对WorldPay帐户存在最大交易价值.如果您的交易价值超过此值,它也会返回上述错误.默认值为2,500英镑,但可以通过联系WorldPay来增加.
网友评论