这个简单的贝宝解决方案是否允许信用卡交易和负面测试? [英] Does this simple paypal solution allow credit card transactions and Negative Testing?

查看:23
本文介绍了这个简单的贝宝解决方案是否允许信用卡交易和负面测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这些服务感到很困惑,在这里,paypal 网站似乎也提供 400 和 404.

I am so confused about the services and over here the paypal website also seems to be serving up 400's and 404s.

当客户准备付款时,网页是这样在我的网站上寻找客户的:

This is how the webpage looks for customers on my site when they are ready to pay:

据我所知,我没有 Express Checkout,但我不确定我是否有 Website Payments Pro(我的公司创建了这个帐户).

As far as I know, I don't have Express Checkout, but I'm not sure if I have Website Payments Pro (my company created this account).

现在我有两个问题:

1- 这只是沙箱.但是在真实网站上,这个解决方案是否让用户有机会通过信用卡支付?我实际上已经在沙盒中成功完成了信用卡交易,我只是担心,因为我听说客户只能在 PayPal Website Payments Pro 中进行直接的信用卡交易.PayPal 网站上的信息过多,我无法通过它来回答这样的简单问题.

1- This is just the sandbox. But on the real site, does this solution that give users the opportunity to pay by credit card? I've actually successfully done a credit card transaction in the sandbox, I'm just worried because I've heard that customers can only do direct credit card transactions in PayPal Website Payments Pro. The PayPal website is overloaded with information and I can't find my way around it to answer simple questions like this.

2- 是否可以对此页面上的交易进行负面测试?比如模拟用户信用卡或Paypal账户余额不足的事件?如果可能,并且我正在使用 ButtonManagerAPI,那么下面的技术是否是正确的方法?

2- Is it possible to do negative testing for transactions on this page? Such as simulating the events that the user's credit card or Paypal account doesn't have enough balance? If it is possible, and I am using the ButtonManagerAPI, then is the technique below the correct way to go about it?

我在通过 NVP api 调用传递给 IPN 的数量变量中放置了一个错误代码,如下所示(中间的许多值对被排除为不相关):

$nvpReq = "BUTTONCODE=HOSTED&..............&L_BUTTONVAR1=amount=".$err_code

编辑

所以看来我有 PayPal 网站付款标准,这意味着我不能在我的网站上直接使用信用卡付款表格,但必须将客户定向到 PayPal.我可以接受,只要客户可以选择使用信用卡付款.

推荐答案

屏幕截图看起来像 PayPal Standard,它是一个纯 HTML(非 API)集成.

The screenshot looks like PayPal Standard, which is an HTML-only (non-API) integration.

任何可以收款的常规企业帐户都可以使用 Express Checkout API.通常通过使用 API USER/PWD/SIGNATURE 进行身份验证.对于拥有编程/开发资源的企业,EC 是目前接受 PayPal 付款的推荐方式.

Any regular business account that can receive money can make use of the Express Checkout API.. typically by authenticating with an API USER/PWD/SIGNATURE. For businesses with programming/development resources, EC is by far the recommended way to accept PayPal payments.

如果您在初始 SetExpressCheckout 调用中传递 SOLUTIONTYPE=Sole,它将接受来自没有 PayPal 帐户的访客"客户的信用卡,类似于您在上面显示的标准屏幕截图.

If you pass SOLUTIONTYPE=Sole in the initial SetExpressCheckout call, it will accept credit cards from "guest" customers who don't have a PayPal account, similar to the Standard screenshot you're displaying above.

选择 EC 而不是 Standard 的主要原因是您的结账软件和 PayPal 服务器之间的握手要紧密得多.使用 Standard 的 HTML-only,客户被重定向离开您的站点,并且在成功提交交易后可能不会返回到您的站点(他们可能会留在 paypal.com 上而不是点击返回,或者他们的浏览器可能会在返回前崩溃---而使用 EC,在任何事情触及财务系统之前就内置返回您的网站)

The main reason to choose EC over Standard is that it's a much tighter handshake between your checkout software and PayPal's servers. With Standard's HTML-only, the customer is redirected away from your site and might not return to your site after a successful transaction is committed (they may stay on paypal.com and not click to return or their browser might crash before return --- whereas with EC the return to your site is built-in before anything touches the financial system)

在 developer.paypal.com 的最新测试版中,默认情况下,所有新的沙盒商业帐户都是完整的专业帐户.如果除了接受 PayPal 付款外,您还希望直接在自己的网站上创建信用卡输入表单,那么注册一个真实的 Pro 帐户会很有用.

With the recent beta of developer.paypal.com, all new sandbox Business accounts are full Pro accounts by default. Signing up for a live Pro account would be useful if, in addition to accepting PayPal payments, you wished to create a credit card entry form directly on your own site.

以下是一些面向程序员的 EC 链接:

Here are some EC links for programmers:

  1. https://tryit.paypal.com/guide/ec
  2. https://paypal-labs.com/integrationwizard/ecpaypal/main.php

按钮管理器 API 不太可能对您有用.还有一些方法可以使用沙箱进行负面测试,但当您仍在决定产品/API 时,这确实不是一个重要的问题.

The button manager API is unlikely to be useful to you. And there are ways to do negative testing with the sandbox, but it's really not an important concern when you're still deciding on a product/API.

这篇关于这个简单的贝宝解决方案是否允许信用卡交易和负面测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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