Having some issues with my card charging actions, just want to make sure this whole process is ok:
I've embedded the payment form on my web page (https://mysite.mydomain.com
) and I can get the form to generate a nonce. I then pass that to my back end server on that sub-domain which forwards the request to another back end server I have on a different sub-domain (https://mysite-2.mydomain.com
). This second back end server is the one that processes the card charge. They both are on the same domain but I'm getting a CARD_DECLINED
error back from the charge endpoint. I'd just like to confirm if what I'm attempting to do is possible to rule that out of the possible causes for the error.
Both are connecting to the same application id (I tested this and when I changed application ids the error became NOT_FOUND
)
Thanks!
答案 0 :(得分:0)
是的,可以从与生成随机数的服务器不同的服务器进行充电。事实上,由于收费是从后端完成的,因此您不需要为收费的代码提供可公开访问的域名。您是否尝试过使用沙箱,这有用吗?您使用的是经常使用的卡吗?