Note that there are some explanatory texts on larger screens.

plurals
  1. POPaypal API - PayPalNVP wrapper in PHP
    primarykey
    data
    text
    <p>I am using the Paypal API with a wrapper class (PayPalNVP) and am trying to get the resulting payment page at Paypal to show the item description and final total on the left hand side. Right now it just shows nothing.</p> <p>I am trying to pass the following vars to Paypal:</p> <pre><code>$paypal-&gt;setNVP("RETURNURL", "http://www.mysite.ca/confirm.php"); $paypal-&gt;setNVP("EMAIL", "$strPaypalEmail"); $paypal-&gt;setNVP("CURRENCYCODE", "CAD"); $paypal-&gt;setNVP("AMT", number_format($fltGrandTotal, 2)); $paypal-&gt;setNVP("L_PAYMENTREQUEST_0_NAME0", "2013 Golf Registration"); $paypal-&gt;setNVP("L_DESC0", "2013 Golf Registration"); $paypal-&gt;setNVP("L_PAYMENTREQUEST_0_AMT0", number_format($fltGrandTotal, 2)); $paypal-&gt;setNVP("ITEMAMT", number_format($fltGrandTotal, 2)); $paypal-&gt;setNVP("CUSTOM", $amount); $paypal-&gt;setNVP("INVNUM", $orderID); </code></pre> <p>I would think this would set the description of the purchase to "2013 Golf Registration" and also show the final total... but it doesn't.</p> <p>Any advice would be appreciated.</p> <p>Request / Reponse as requested above:</p> <pre><code>Array ( [TOKEN] =&gt; EC%2d8E276085HF4665733 [TIMESTAMP] =&gt; 2013%2d04%2d04T20%3a08%3a15Z [CORRELATIONID] =&gt; 5b4a7f1b97a0a [ACK] =&gt; Success [VERSION] =&gt; 51%2e0 [BUILD] =&gt; 5618210 [EMAIL] =&gt; xxx@xxx.com [PAYERID] =&gt; XXXXX [PAYERSTATUS] =&gt; verified [FIRSTNAME] =&gt; John [LASTNAME] =&gt; Smith [COUNTRYCODE] =&gt; CA [SHIPTONAME] =&gt; John Smith [SHIPTOSTREET] =&gt; 123 Here [SHIPTOSTREET2] =&gt; PO BOX 164 [SHIPTOCITY] =&gt; Here [SHIPTOSTATE] =&gt; There [SHIPTOZIP] =&gt; K1K1K1 [SHIPTOCOUNTRYCODE] =&gt; CA [SHIPTOCOUNTRYNAME] =&gt; Canada [ADDRESSSTATUS] =&gt; Confirmed [CUSTOM] =&gt; 1%2e00 [INVNUM] =&gt; 9 ) Array ( [TOKEN] =&gt; EC%2d8E276085HF4665733 [TIMESTAMP] =&gt; 2013%2d04%2d04T20%3a08%3a18Z [CORRELATIONID] =&gt; 33790dbf25c30 [ACK] =&gt; Success [VERSION] =&gt; 51%2e0 [BUILD] =&gt; 5618210 [TRANSACTIONID] =&gt; 5V299088DL2402133 [TRANSACTIONTYPE] =&gt; expresscheckout [PAYMENTTYPE] =&gt; instant [ORDERTIME] =&gt; 2013%2d04%2d04T20%3a08%3a17Z [AMT] =&gt; 1%2e00 [FEEAMT] =&gt; 0%2e33 [TAXAMT] =&gt; 0%2e00 [CURRENCYCODE] =&gt; CAD [PAYMENTSTATUS] =&gt; Completed [PENDINGREASON] =&gt; None [REASONCODE] =&gt; None ) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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