Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I integrate a BN code with XML Pay? (PayPal Payflow Pro)
    text
    copied!<p>We're using PayPal's Website Payments PayFlow Pro to process credit cards on our website, and we recently joined the PayPal Partner program that lets you specify a "BN Code" with each transaction processed to get credit for it. The only trouble is... all of the documentation for how to use BN codes is for the obsolete Express Checkout style of processing transactions (which was basically just sending over form data as a long query string), rather than the current model with XMLPay.</p> <p>In the old model, this "BN code" was specified as the <code>BUTTONSOURCE</code> parameter, and so I know to use the <code>&lt;ButtonSource&gt;</code> tag in XMLPay. However, <strong>I don't know where to put it.</strong></p> <p>Neither the <a href="https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_payflowpro_xmlpay_guide.pdf" rel="nofollow">XMLPay Developer's Guide</a> nor the <a href="https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_wpppf_xmlpay_guide.pdf" rel="nofollow">Website Payments Pro Payflow Edition - XMLPay Developer's Guide</a> seemed very helpful in answering this question. They give examples of placing the <code>&lt;ButtonSource&gt;</code> tag immediately inside a <code>&lt;PayPal&gt;</code> tag, which is used as the <code>&lt;Tender&gt;</code>. The problem with that is that most of our customers will not be using PayPal as their tender; they'll be using their credit cards.</p> <p>I tried a number of transactions, moving the <code>&lt;ButtonSource&gt;</code> tag around to various spots, both inside a <code>&lt;PayPal&gt;</code> tag and standing alone without one. With every different attempt I made, either the transaction was declined, or the code simply didn't come through.</p> <p>Here's an example of the XMLPay request we're sending to PayPal. I know this is not correct placement of <code>&lt;ButtonSource&gt;</code> tag, but <strong>could someone here tell me where I need to place that tag</strong>? Or could you just post a revised copy of this XML that does it the right way?</p> <hr> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;XMLPayRequest xmlns="http://www.paypal.com/XMLPay" Timeout="30" Version="2.0"&gt; &lt;RequestData&gt; &lt;Vendor&gt;************&lt;/Vendor&gt; &lt;Partner&gt;PayPal&lt;/Partner&gt; &lt;Transactions&gt; &lt;Transaction&gt; &lt;Sale&gt; &lt;PayData&gt; &lt;Invoice&gt; &lt;NationalTaxIncl&gt;false&lt;/NationalTaxIncl&gt; &lt;TotalAmt&gt;10.00&lt;/TotalAmt&gt; &lt;BillTo&gt; &lt;Address&gt; &lt;Street&gt;1234 Fake Street&lt;/Street&gt; &lt;Zip&gt;90210&lt;/Zip&gt; &lt;/Address&gt; &lt;/BillTo&gt; &lt;/Invoice&gt; &lt;Tender&gt; &lt;Card&gt; &lt;CardType&gt;VISA&lt;/CardType&gt; &lt;CardNum&gt;****************&lt;/CardNum&gt; &lt;ExpDate&gt;******&lt;/ExpDate&gt; &lt;NameOnCard&gt;John Smith&lt;/NameOnCard&gt; &lt;CVNum&gt;***&lt;/CVNum&gt; &lt;/Card&gt; &lt;/Tender&gt; &lt;ButtonSource&gt;MyCompanyBNCode&lt;/ButtonSource&gt; &lt;/PayData&gt; &lt;/Sale&gt; &lt;/Transaction&gt; &lt;/Transactions&gt; &lt;/RequestData&gt; &lt;RequestAuth&gt; &lt;UserPass&gt; &lt;User&gt;************&lt;/User&gt; &lt;Password&gt;************&lt;/Password&gt; &lt;/UserPass&gt; &lt;/RequestAuth&gt; &lt;/XMLPayRequest&gt; </code></pre> <hr> <p>Many thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload