Paypal REST API错误:重复的交易和重复的发票ID [英] Paypal REST API error: Duplicate Transaction and Duplicate Invoice ID

查看:344
本文介绍了Paypal REST API错误:重复的交易和重复的发票ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大约2-3周前,我在网站上添加了PayPal付款处理程序,它的工作原理很不错,没有任何问题.现在,我回到该项目来调整代码.我还没有碰过2-3周前完成的Paypal代码,因此尝试付款.

About 2-3 weeks ago I added PayPal payment processing to my site and it worked like a charm with no problems. Now I've come back to the project to tweak the code. I haven't touched the Paypal code that I finished 2-3 weeks ago, and I tried to pay an invoice.

我目前正在沙箱中运行它.我收到的错误是重复的交易,重复的发票ID.但是,每个发票ID对于创建的每个发票都是唯一的,因此,我什至看不出这可能是个问题(更不用说我没有触摸代码了).下面是使用贝宝连接异常"时遇到的错误的图像.

I am currently running this in sandbox. The error I am getting is a duplicate transaction, duplicate invoice id. However each invoice ID is unique to each invoice created so I don't see how that could even be an issue (let alone I didn't touch the code). Below is an image of the error I am getting while using Paypal Connection Exception.

因此,现在我陷入了困境,完全无法解决该问题.任何帮助,我们将不胜感激.谢谢

So now I'm stuck and completely lost on what I should do to fix this issue. Any help is very appreciated. Thanks

推荐答案

已解决.您不能传递自己的唯一发票ID(为什么是IDK),我只是使用了uniqid()即可.

Solved. You cannot pass in your own unique invoice ID (idk why), I just used uniqid() and it works.

这篇关于Paypal REST API错误:重复的交易和重复的发票ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆