Forums

Paypal cart

jeffmall 01 May, 2015
I am trying to pass 5 different items to a Paypal shopping cart.

I have 3 field for each item (description, cost, qty).

How do I pass all of the field data to Paypal. Could not find an example that shows this.

Thanks!
GreyHead 02 May, 2015
Hi jeffmail,

You could do it with the ReDirect URL action by adding lots of lines, For something like this though I would probably look at using an API library to do the integration. I recently used the Lionite library for a client and that seemed to work well with a ChronoForm.

It's a paid library but can be integrated neatly with a ChronoForm and gives you immediate feedback about your sale. Note: it probably needs a PalPay Express or Website Payments Pro account to get the Instant Payment Notification.

Bob
jeffmall 02 May, 2015
Hi Bob,

Thanks for your reply.

I would like to compare both solutions. How would I accomplish this with RedirectURL?

Jeff
GreyHead 02 May, 2015
Hi jeffmail,

You'd work out the list of parameters you need to send to PayPal and set them up in the ReDirect action. There isn't much else to say.

Note that if you use the ReDirect action alone you will not get Instant Payment Notification - you still need to have an appropriate PayPal account and a listener set up or that to work.

Bob
Max_admin 04 May, 2015
Hi,

This can be done using the "PayPal redirect" action, this is explained under the "item name field":

The field name holding the item's title, if the field value is an array then multiple items will be shown on the PayPal page, and both the amount and quantity fields should be of type array too. also for this to work, the Command should be set to '_cart' and you should add upload="1" to the extra params box.


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jeffmall 04 May, 2015
Hi Max,

I did read that while using Chronoform. Unfortunately I could not find documentation on how to use Chronoform to setup an array. Due to this, I started looking for examples.....

If you could point me to the docs on setting up and using an array, I would appreciate it.

Thanks,
Jeff
Max_admin 04 May, 2015
Hi Jeff,

A checkboxes group of items will send an array, array fields names have square brackets after them:
field_name[]


You may also inject the value in the data array using PHP code.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.