Note that there are some explanatory texts on larger screens.

plurals
  1. POMissing amount and order summary in PayPal Express Checkout
    primarykey
    data
    text
    <p>I have integrated paypal into codeigniter with paypal_helper (didn't rememeber where I found it, but it is a slightly rewritten version of Paypals original code for express checkout. I try calling this function, </p> <blockquote> <p>CallShortcutExpressCheckout( $paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL)</p> </blockquote> <p>sending $paymentAmount as int, $currencyCodeType as "NOK" and $paymentType as "Sale".</p> <p>Both in Sandbox and live, no amount appears on the paypal site...</p> <p>What could be wrong?</p> <p>Edit, to further explain my process. I use this, mostly as specified in the <a href="https://www.paypal-labs.com/integrationwizard/ecpaypal/cart.php" rel="noreferrer">https://www.paypal-labs.com/integrationwizard/ecpaypal/cart.php</a>. This should be doable without the form? The paymentAmount could be sent as a standard variable, when calling the function CallShortcutExpressCheckout?:</p> <pre><code>$resArray = CallShortcutExpressCheckout ($paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL); $ack = strtoupper($resArray["ACK"]); if($ack=="SUCCESS" || $ack=="SUCCESSWITHWARNING") { RedirectToPayPal ( $resArray["TOKEN"] ); } else { //Display a user friendly Error on the page using any of the following error information returned by PayPal $ErrorCode = urldecode($resArray["L_ERRORCODE0"]); $ErrorShortMsg = urldecode($resArray["L_SHORTMESSAGE0"]); $ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]); $ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]); echo "SetExpressCheckout API call failed. "; echo "Detailed Error Message: " . $ErrorLongMsg; echo "Short Error Message: " . $ErrorShortMsg; echo "Error Code: " . $ErrorCode; echo "Error Severity Code: " . $ErrorSeverityCode; } </code></pre> <p>The token is saved in a database. The user gets redirected to Paypal, where no amount is listed.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    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