<strong>Bannta wrote:</strong>
I have in issue... the $items_query_string is showing up empty...and the same thing is happening on your example as well.
For this example we have PayPal off to avoid any accidental charge while tesing.
Once you add your merchant ID the Checkout With PayPal button will link on to that site.
PayPal integration requires a secure merchant ID. Please see the installation instructions for more info.
Below is the URL that would be sent to PayPal if a merchant ID was set in jcart-config.php:
www.paypal.com/cgi-bin/webscr?cmd=_cart&...p;business=PAYPAL_ID
should be getting that $items_query_string after the PAYPAL_ID even in test mode.
<code>echo 'www.paypal.com/cgi-bin/webscr?cmd=_cart&...ness=PAYPAL_ID' . $items_query_string;</code>
I found it:
jcart.php line 300ish
| Code: |
// OVERWRITE THE CONFIG FORM ACTION TO POST TO jcart-gateway.php INSTEAD OF POSTING BACK TO CHECKOUT PAGE
// THIS ALSO ALLOWS US TO VALIDATE PRICES BEFORE SENDING CART CONTENTS TO PAYPAL
if ($is_checkout == true)
{
// $form_action = $path . 'jcart-gateway.php';
// adjusted for Joomla
// find the domain:
$joomlaMenuURL = $_SERVER['HTTP_REFERER'];
if (isset($_GET['action'])) {
$form_action = $joomlaMenuURL;
} else {
$form_action = $joomlaMenuURL."&action=gateway";
}
}
|
I remove the "adjusted for joomla" and pop it back to original code
| Code: |
// OVERWRITE THE CONFIG FORM ACTION TO POST TO jcart-gateway.php INSTEAD OF POSTING BACK TO CHECKOUT PAGE
// THIS ALSO ALLOWS US TO VALIDATE PRICES BEFORE SENDING CART CONTENTS TO PAYPAL
if ($is_checkout == true)
{
$form_action = $path . 'jcart-gateway.php';
}
|
Note: You guys can test your transaction in the paypal sandbox to give it a once over. just set up a test account and enable the setting.
// REDIRECT TO PAYPAL WITH MERCHANT ID AND CART CONTENTS
header( 'Location:
www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=' . $jcart['paypal_id'] . $items_query_string);
exit;