Adding A Field To Paypal Transaction Fields?

Been trying to find something about this.

Basically I need to add a vendor's ID (Name) to the transaction page in PayPal. So, that when the payment goes through, we know which vendor it is for.

Thanks

PayPal displays it by itself, CS-Cart cannot force it. This information is taken from the PayPal merchant account, which is used when the transaction request is passed.

The merchant account is taken from the setting of payment method in CS-Cart.

It seems, you want to configure Multi-Vendor in such a way that the payments will be transferred directly to your vendors. But Multi-Vendor is designed so the payment goes to administrator's account first. And then administrator pays to vendors in some way.

We developed similar modifications, in which vendors are allowed to configure payment methods by themselves, and payments go directly to their accounts (not necessary it is PayPal, to any payment accounts).

You can contact us with this request in our HelpDesk.

Been trying to find something about this.

Basically I need to add a vendor's ID (Name) to the transaction page in PayPal. So, that when the payment goes through, we know which vendor it is for.

Thanks

What if order contains products from different vendors?

In our modifications a customer pays to each vendor separately. Number of vendors in an order = number of redirects to PayPal

In our modifications a customer pays to each vendor separately. Number of vendors in an order = number of redirects to PayPal

Actually the question was to dynamok. Possibly it is required just to display all vendors of this order in one place

https://www.etsy.com/listing/250766878/parks-and-rec-ron-swanson-meat-cutting?ref=shop_review

Like on etsy.com this would be the item (product) number 250766878.

Or on amazon.com this would be the number B004TFIR52.

http://smile.amazon.com/gp/product/B004TFIR52/ref=s9_al_gw_g193_i2?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=desktop-2&pf_rd_r=0AW6ZYQT9D0A1EM91PK3

Sorry, last post was for the another question.

Actually, what we need this for is to find who to assign the payment to.

We don't want a customer to be able to place an order from 2 sellers at the same time. By default he can buy any number of items from one seller and make a PayPal payment.

What we want is for PayPal to show us vendor's ID.

https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/howto_checkout-outside#methodone

Here it shows that you can have a number of different fields sent to PayPal, can we assign one of them to show the vendor's ID? Or is this needs to be developed?

What PayPal service do you use? For example, if you use simple PayPal (not Pro or Express Checkout), please open the app/addons/paypal/payments/paypal.php file and add

foreach ($order_info['products'] as $oi) {
    if (!empty($oi['company_id'])) {
        $paypal_item_name .= (" (" . fn_get_company_name($oi['company_id']) . ")");
        break;
    }
}

after this line of code:

$paypal_item_name = $processor_data['processor_params']['item_name'];

(!) Not tested

This should work.

dynamok, so what if there are products from several vendors in the shopping cart?

This should work.

dynamok, so what if there are products from several vendors in the shopping cart?

Please check post #9

'We don't want' is not equal to 'They cannot'

'We don't want' is not equal to 'They cannot'

Looks like they already have this modificaiton

What PayPal service do you use? For example, if you use simple PayPal (not Pro or Express Checkout), please open the app/addons/paypal/payments/paypal.php file and add

foreach ($order_info['products'] as $oi) {
    if (!empty($oi['company_id'])) {
        $paypal_item_name .= (" (" . fn_get_company_name($oi['company_id']) . ")");
        break;
    }
}
after this line of code:
$paypal_item_name = $processor_data['processor_params']['item_name'];
(!) Not tested


Added the line, didn't work. Using regular PayPal processor.

Please try this code

foreach ($order_info['products'] as $oi) {
    $product_company_id = db_get_field("SELECT company_id FROM ?:products WHERE product_id = ?i", $oi['product_id']);
    if (!empty($product_company_id)) {
        $paypal_item_name .= (" (" . fn_get_company_name($product_company_id) . ")");
        break;
    }
}

Same thing, vendor's name not going through. Any more suggestions?

Don't we want vendor_id somewhere in there? Again, I'm not a programmer :mrgreen:

or does the company_id answers for this?

or does the company_id answers for this?

Yes, this is ID of store-front in CS-Cart and ID of vendor in Multi-Vendor

If you change the value of the Name of the item (or a name for the Shopping Cart) setting, is it displayed somewhere on PayPal side?

http://prntscr.com/9gpgx1