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?
-
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
1 Answer
Reset to default 7I'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.