最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How is the Braintree "Transparent Redirect" implemented? - Stack Overflow

programmeradmin2浏览0评论

In Braintree's Step 2 of How Transparent Redirect Works they state:

The payment gateway then stores the data and redirects the customer back to the your site. Because the payment gateway redirects the customer back to your site without displaying any content, the customer won't notice that he or she ever left your site.

How exactly is this transparent redirect implemented?

  • HTML Meta refresh?
  • Javascript load URL snippet?
  • HTTP 3xx redirect?

In Braintree's Step 2 of How Transparent Redirect Works they state:

The payment gateway then stores the data and redirects the customer back to the your site. Because the payment gateway redirects the customer back to your site without displaying any content, the customer won't notice that he or she ever left your site.

How exactly is this transparent redirect implemented?

  • HTML Meta refresh?
  • Javascript load URL snippet?
  • HTTP 3xx redirect?
Share Improve this question edited Oct 16, 2012 at 4:24 Clint Pachl asked Oct 15, 2012 at 7:53 Clint PachlClint Pachl 11.9k8 gold badges45 silver badges42 bronze badges 3
  • 1 Isn't this something to ask on their support? I'd believe a location header is very appropriate in this case. – Fabrício Matté Commented Oct 15, 2012 at 8:07
  • @FabrícioMatté, I thought of that, but figured it might be more conversational to ask it here. I'm also interested in using Braintree, so I thought wouldn't it be cool if a someone from Braintree answers my question. I wasn't disappointed. I think this reflects well on the pany. – Clint Pachl Commented Oct 16, 2012 at 4:02
  • 1 I asked this question here because I'm interested at a technical level. We currently use Authorize's transparent redirect. However, their solution is very crappy. They send a small HTML page with an old school meta-refresh tag and a load-URL Javascript snippet. This actually loads a blank white page on the client for a second or more, depending on the connection. I'm pleased to see Braintree doesn't do this nonsense. – Clint Pachl Commented Oct 16, 2012 at 4:22
Add a ment  | 

1 Answer 1

Reset to default 7

I'm a developer at Braintree.

We currently implement this using an HTTP redirect. Merchants configure a form to post to us by setting the form action to a Braintree URL.

When we receive the form post, we redirect the user back to the merchant's site without displaying any content. We do this via an HTTP 3xx response with a Location header.

Unless users are looking at their browser status bar, they won't have any visible indication that they left the merchant's website. This gives merchants control over the user experience of the checkout process without needing to have credit card data pass through their servers.

You can also read an overview of our Transparent Redirect API on our web site.

发布评论

评论列表(0)

  1. 暂无评论