如何测试Paypal帐户?

时间:2013-05-14 12:36:42

标签: paypal paypal-sandbox

我想测试一下paypal帐户。我创建了商家帐户和个人帐户。现在我想测试一下,如果可以在上线之前将(虚拟)资金从个人账户转移到商业(促进者)账户。 提前致谢

2 个答案:

答案 0 :(得分:0)

这很简单。

登录Paypal Sandbox并创建新供应商和新买家。它会为您提供虚假的电子邮件和密码,但您不需要它们。

现在,您的虚拟购买者可以根据需要从虚拟供应商那里购买尽可能多的产品。

答案 1 :(得分:0)

这会进入您的html页面

<form action="https://securepayments.sandbox.paypal.com/acquiringweb" method="post">
<input type="hidden" name="cmd" value="_hosted-payment">
<input type="hidden" name="subtotal" value="50">
<input type="hidden" name="business" value="HNZ3QZMCPBAAA">
<input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="return"value="https://yourwebsite.com/receipt_page.html">
<input type="submit" name="METHOD" value="Pay Now">
</form>

这是您使用托管模型集成方法的示例。您可以在cmd字段中更改模式以满足您的要求。有关选项的完整列表,请参阅documentationbusiness需要您的商家ID(商家ID)。您甚至可以尝试使用商家帐户的电子邮件地址。

更多详情here

Paypal文档尽管可以很容易理解,但实施起来有点困难。