SagePay:3014:TxType 或 PaymentType 无效(重复)

SagePay: 3014 : The TxType or PaymentType is invalid (REPEAT)

我在 SagePay 上重复交易时遇到问题。支持人员说他们为我启用了它(在测试帐户上),但也无法从他们的支持人员那里得到任何其他回应。

无论如何。我正在为此使用 SERVER 集成和 SagePay 库。

我成功通过了付款,但是在尝试重复时失败了。

这是我要发送的内容:

array(42) {
    ["VPSProtocol"]=>
  string(4) "3.00"
    ["TxType"]=>
  string(6) "REPEAT"
    ["Vendor"]=>
  string(15) "vendor_name"
    ["VendorTxCode"]=>
  string(27) "REPEAT-1464105247-000000000"
    ["Amount"]=>
  string(6) "155.36"
    ["Currency"]=>
  string(3) "GBP"
    ["Description"]=>
  string(42) "Description"
    ["NotificationURL"]=>
  string(66) "http://example.com/sagepay_notification/"
    ["BillingSurname"]=>
  string(6) "Surname"
    ["BillingFirstnames"]=>
  string(6) "Firstname"
    ["BillingAddress1"]=>
  string(22) "First line address"
    ["BillingCity"]=>
  string(7) "City"
    ["BillingPostCode"]=>
  string(7) "PostCode"
    ["BillingCountry"]=>
  string(2) "GB"
    ["DeliverySurname"]=>
  string(6) "Surname"
    ["DeliveryFirstnames"]=>
  string(6) "Firstname"
    ["DeliveryAddress1"]=>
  string(22) "First line address"
    ["DeliveryCity"]=>
  string(7) "City"
    ["DeliveryPostCode"]=>
  string(7) "PostCode"
    ["DeliveryCountry"]=>
  string(2) "GB"
    ["StoreToken"]=>
  int(1)
  ["CustomerName"]=>
  string(13) "Firstname Lastname"
    ["CustomerEMail"]=>
  string(0) ""
    ["VendorEMail"]=>
  string(0) ""
    ["SendEMail"]=>
  int(0)
  ["eMailMessage"]=>
  string(0) ""
    ["BillingAddress2"]=>
  string(11) "Town Centre"
    ["BillingPhone"]=>
  string(11) "07000000000"
    ["ApplyAVSCV2"]=>
  int(0)
  ["Apply3DSecure"]=>
  int(0)
  ["AllowGiftAid"]=>
  int(1)
  ["BillingAgreement"]=>
  int(1)
  ["RelatedVPSTxId"]=>
  string(38) "{00000C44-0000-0000-0000-849C140E0000}"
    ["RelatedVendorTxCode"]=>
  string(28) "PAYMENT-1463754864-000000000"
    ["RelatedSecurityKey"]=>
  string(10) "LPSS900000"
    ["RelatedTxAuthNo"]=>
  string(8) "109700000"
    ["DeliveryAddress2"]=>
  string(11) "Town Centre"
    ["DeliveryPhone"]=>
  string(11) "0700000000"
    ["BasketXML"]=>
  string(300) "Installment1155.360.00155.36155.36"
    ["SurchargeXML"]=>
  string(175) "MC5VISA3.5"
    ["Profile"]=>
  string(6) "NORMAL"
    ["AccountType"]=>
  string(1) "E"
}

这是我的回复:

array(3) {
  ["VPSProtocol"]=>
  string(4) "3.00"
  ["Status"]=>
  string(7) "INVALID"
  ["StatusDetail"]=>
  string(44) "3014 : The TxType or PaymentType is invalid."
}

知道为什么我仍然有这个错误吗?

我整理好了。

问题是我没有注意到重复付款必须发送到不同的 URL 地址。

REPEAT / REPEATDEFERRED TEST https://test.sagepay.com/gateway/service/repeat.vsp REPEAT / REPEATDEFERRED LIVE https://live.sagepay.com/gateway/service/repeat.vsp