Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First you are mixing some of the old variables with the new variable's, and you are using some of the same variables both old and new. Here is what your request should be passing over. Once you pass over these variables in this format, your request will go through.</p> <pre><code>RETURNURL=http://www.mydomainname.com/pp/paypal/process.php CANCELURL=http://www.mydomainname.com/pp/paypal/cancel_url.php ALLOWNOTE=1 PAYMENTREQUEST_0_PAYMENTACTION=Sale PAYMENTREQUEST_0_CURRENCYCODE=EUR PAYMENTREQUEST_0_AMT=106.72 PAYMENTREQUEST_0_ITEMAMT=106.72 L_PAYMENTREQUEST_0_QTY0=3 L_PAYMENTREQUEST_0_AMT0=28.46 L_PAYMENTREQUEST_0_NAME0=FIRSTitem L_PAYMENTREQUEST_0_NUMBER0=0 L_PAYMENTREQUEST_0_QTY1=1 L_PAYMENTREQUEST_0_AMT1=21.34 L_PAYMENTREQUEST_0_NAME1=SECONDitem L_PAYMENTREQUEST_0_NUMBER1=1 </code></pre> <p><em>Below is what I passsed over in my Express Checkout API calls from start to finish.</em></p> <p><strong>SetExpressCheckout API Request:</strong></p> <pre><code>USER=xxxxxxxxxx PWD=xxxxxxxxxx SIGNATURE=xxxxxxxxxx METHOD=SetExpressCheckout VERSION=98.0 RETURNURL=xxxxxxxxxx CANCELURL=xxxxxxxxxx ALLOWNOTE=1 PAYMENTREQUEST_0_PAYMENTACTION=Sale PAYMENTREQUEST_0_CURRENCYCODE=EUR PAYMENTREQUEST_0_AMT=106.72 PAYMENTREQUEST_0_ITEMAMT=106.72 L_PAYMENTREQUEST_0_QTY0=3 L_PAYMENTREQUEST_0_AMT0=28.46 L_PAYMENTREQUEST_0_NAME0=FIRSTitem L_PAYMENTREQUEST_0_NUMBER0=0 L_PAYMENTREQUEST_0_QTY1=1 L_PAYMENTREQUEST_0_AMT1=21.34 L_PAYMENTREQUEST_0_NAME1=SECONDitem L_PAYMENTREQUEST_0_NUMBER1=1 </code></pre> <p><strong>SetExpressCheckout API Response:</strong></p> <pre><code>TOKEN=EC-3TL21567PX031102F TIMESTAMP=2013-05-01T17:55:07Z CORRELATIONID=57357a4d9619c ACK=Success VERSION=98.0 BUILD=5817241 </code></pre> <p><strong>GetExpressCheckoutDetails API Request:</strong></p> <pre><code>USER=xxxxxxxxxx PWD=xxxxxxxxxx SIGNATURE=xxxxxxxxxx METHOD=GetExpressCheckoutDetails VERSION=98.0 TOKEN=EC-3TL21567PX031102F </code></pre> <p><strong>GetExpressCheckoutDetails API Response:</strong></p> <pre><code>TOKEN=EC-3TL21567PX031102F CHECKOUTSTATUS=PaymentActionNotInitiated TIMESTAMP=2013-05-01T17:56:26Z CORRELATIONID=69c3839d7aedd ACK=Success VERSION=98.0 BUILD=5817241 EMAIL=mts_us_per@ccaples.com PAYERID=EW4KQ9CQX45F6 PAYERSTATUS=verified FIRSTNAME=MTS LASTNAME=Testing COUNTRYCODE=US SHIPTONAME=PayPal PayPal SHIPTOSTREET=123 street SHIPTOCITY=omaha SHIPTOSTATE=NE SHIPTOZIP=68138 SHIPTOCOUNTRYCODE=US SHIPTOCOUNTRYNAME=United States ADDRESSSTATUS=Confirmed CURRENCYCODE=EUR AMT=106.72 ITEMAMT=106.72 SHIPPINGAMT=0.00 HANDLINGAMT=0.00 TAXAMT=0.00 INSURANCEAMT=0.00 SHIPDISCAMT=0.00 L_NAME0=FIRSTitem L_NAME1=SECONDitem L_NUMBER0=0 L_NUMBER1=1 L_QTY0=3 L_QTY1=1 L_TAXAMT0=0.00 L_TAXAMT1=0.00 L_AMT0=28.46 L_AMT1=21.34 L_ITEMWEIGHTVALUE0= 0.00000 L_ITEMWEIGHTVALUE1= 0.00000 L_ITEMLENGTHVALUE0= 0.00000 L_ITEMLENGTHVALUE1= 0.00000 L_ITEMWIDTHVALUE0= 0.00000 L_ITEMWIDTHVALUE1= 0.00000 L_ITEMHEIGHTVALUE0= 0.00000 L_ITEMHEIGHTVALUE1= 0.00000 PAYMENTREQUEST_0_CURRENCYCODE=EUR PAYMENTREQUEST_0_AMT=106.72 PAYMENTREQUEST_0_ITEMAMT=106.72 PAYMENTREQUEST_0_SHIPPINGAMT=0.00 PAYMENTREQUEST_0_HANDLINGAMT=0.00 PAYMENTREQUEST_0_TAXAMT=0.00 PAYMENTREQUEST_0_INSURANCEAMT=0.00 PAYMENTREQUEST_0_SHIPDISCAMT=0.00 PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED=false PAYMENTREQUEST_0_SHIPTONAME=PayPal PayPal PAYMENTREQUEST_0_SHIPTOSTREET=123 street PAYMENTREQUEST_0_SHIPTOCITY=omaha PAYMENTREQUEST_0_SHIPTOSTATE=NE PAYMENTREQUEST_0_SHIPTOZIP=68138 PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME=United States PAYMENTREQUEST_0_ADDRESSSTATUS=Confirmed PAYMENTREQUEST_0_ADDRESSNORMALIZATIONSTATUS=None L_PAYMENTREQUEST_0_NAME0=FIRSTitem L_PAYMENTREQUEST_0_NAME1=SECONDitem L_PAYMENTREQUEST_0_NUMBER0=0 L_PAYMENTREQUEST_0_NUMBER1=1 L_PAYMENTREQUEST_0_QTY0=3 L_PAYMENTREQUEST_0_QTY1=1 L_PAYMENTREQUEST_0_TAXAMT0=0.00 L_PAYMENTREQUEST_0_TAXAMT1=0.00 L_PAYMENTREQUEST_0_AMT0=28.46 L_PAYMENTREQUEST_0_AMT1=21.34 L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0= 0.00000 L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE1= 0.00000 L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0= 0.00000 L_PAYMENTREQUEST_0_ITEMLENGTHVALUE1= 0.00000 L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0= 0.00000 L_PAYMENTREQUEST_0_ITEMWIDTHVALUE1= 0.00000 L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0= 0.00000 L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE1= 0.00000 PAYMENTREQUESTINFO_0_ERRORCODE=0 </code></pre> <p><strong>DoExpressCheckoutPayment API Request:</strong></p> <pre><code>USER=xxxxxxxxxx PWD=xxxxxxxxxx SIGNATURE=xxxxxxxxxx METHOD=DoExpressCheckoutPayment VERSION=98.0 TOKEN=EC-3TL21567PX031102F PAYERID=EW4KQ9CQX45F6 PAYMENTREQUEST_0_PAYMENTACTION=Sale PAYMENTREQUEST_0_CURRENCYCODE=EUR PAYMENTREQUEST_0_AMT=106.72 PAYMENTREQUEST_0_ITEMAMT=106.72 L_PAYMENTREQUEST_0_QTY0=3 L_PAYMENTREQUEST_0_AMT0=28.46 L_PAYMENTREQUEST_0_NAME0=FIRSTitem L_PAYMENTREQUEST_0_NUMBER0=0 L_PAYMENTREQUEST_0_QTY1=1 L_PAYMENTREQUEST_0_AMT1=21.34 L_PAYMENTREQUEST_0_NAME1=SECONDitem L_PAYMENTREQUEST_0_NUMBER1=1 </code></pre> <p><strong>DoExpressCheckoutPayment API Response:</strong></p> <pre><code>TOKEN=EC-3TL21567PX031102F SUCCESSPAGEREDIRECTREQUESTED=false TIMESTAMP=2013-05-01T17:57:16Z CORRELATIONID=fb8b667b499a0 ACK=Success VERSION=98.0 BUILD=5817241 INSURANCEOPTIONSELECTED=false SHIPPINGOPTIONISDEFAULT=false PAYMENTINFO_0_TRANSACTIONID=5YP27805RR1557744 PAYMENTINFO_0_TRANSACTIONTYPE=cart PAYMENTINFO_0_PAYMENTTYPE=instant PAYMENTINFO_0_ORDERTIME=2013-05-01T17:57:15Z PAYMENTINFO_0_AMT=106.72 PAYMENTINFO_0_FEEAMT=3.44 PAYMENTINFO_0_SETTLEAMT=137.23 PAYMENTINFO_0_TAXAMT=0.00 PAYMENTINFO_0_CURRENCYCODE=EUR PAYMENTINFO_0_EXCHANGERATE=1.32871 PAYMENTINFO_0_PAYMENTSTATUS=Completed PAYMENTINFO_0_PENDINGREASON=None PAYMENTINFO_0_REASONCODE=None PAYMENTINFO_0_PROTECTIONELIGIBILITY=Eligible PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=ItemNotReceivedEligible,UnauthorizedPaymentEligible PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=6CFEBJAE59DAY PAYMENTINFO_0_ERRORCODE=0 PAYMENTINFO_0_ACK=Success </code></pre>
 

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