Hello
I'm testing miniShop2 2.4.12-pl with MODX Revolution 2.6.1-pl.
I have 2 problems.
1/ Item are not recorded in Paypal transaction
Although the minishop2 Paypal class seems ready to record purchased items names (name or pagetitle), it doesn't.
paypal.class.php
/** @var msOrderProduct $item */
$i = 0;
if ($this->modx->getOption('ms2_payment_paypal_order_details', null, true)) {
$products = $order->getMany('Products');
foreach ($products as $item) {
/** @var msProduct $product */
$name = $item->get('name');
if (empty($name) && $product = $item->getOne('Product')) {
$name = $product->get('pagetitle');
}
$params['L_PAYMENTREQUEST_0_NAME' . $i] = $name;
$params['L_PAYMENTREQUEST_0_AMT' . $i] = str_replace(',', '.', $item->get('price'));
$params['L_PAYMENTREQUEST_0_QTY' . $i] = $item->get('count');
$i++;
}
}
On Paypal side, order detail is always empty:
It's the same with the Paypal "Classic view of transaction details" page.
2/ minishop2 doesn't record Paypal transaction ID
Obviously it's a very basic and important data. It could be great to show this information in purchase logs:
3/ Send custom params to Paypal and get the param on return URL
It's easy to do that with the "button" method. But how to do the same thing with the NVP Paypal API (I cannot fin the equivalent of "custom" input field with the button method) ?
[ed. note: johnxx last edited this post 6 years ago.]