sfPaymentPayPalPlugin

15 views
Skip to first unread message

jiap

unread,
Sep 1, 2009, 2:10:46 PM9/1/09
to symfony payment developers
Hello guys,

I'm developing an extension of your plugin where you can pay
for multiple items.

look this example of fields configuration:

cmd: _cart
rm: 2
return: /frontend_dev.php/sfPaymentPayPal/success
cancel_return: /frontend_dev.php/sfPaymentPayPal/failure
notify_url: /frontend_dev.php/sfPaymentPayPal/ipn
business: te...@business.com
currency_code: USD
upload: 1
item_name_1: Symfony Book
amount_1: 20
quantity_1: 38
item_name_2: Camera
amount_2: 145
quantity_2: 9
item_name_3: Playstation 3
amount_3: 599
quantity_3: 5

For do that i modified the class sfPaymentPayPal and add only one
method to the interface sfPayment

do you want to look my code?
Message has been deleted

Danny L

unread,
Sep 1, 2009, 4:53:34 PM9/1/09
to symfony payment developers
This will be very usefull.
I'l maybe make a shopping cart soon and this will be very cool.
....
I have searched for gateways and I found that moneybookers supports
lots of payment methods and their implementation is post form.
Is it possible to implement it

On Sep 1, 9:10 pm, jiap <g.castellu...@gmail.com> wrote:
> Hello guys,
>
>        I'm developing an extension of your plugin where you can pay
> for multiple items.
>
> look this example of fields configuration:
>
> cmd: _cart
> rm: 2
> return: /frontend_dev.php/sfPaymentPayPal/success
> cancel_return: /frontend_dev.php/sfPaymentPayPal/failure
> notify_url: /frontend_dev.php/sfPaymentPayPal/ipn
> business: t...@business.com

Antoine Leclercq

unread,
Sep 2, 2009, 1:17:15 AM9/2/09
to symfony-payme...@googlegroups.com
Hi,

Thank you for your email.

You can also apply to be developer on the sfPaymentPayPalPlugin plugin page on symfony (http://www.symfony-project.org/plugins/sfPaymentPayPalPlugin), this way you can contribute on your own branch.

I'll validate your account asap.

Thanks.

Antoine

Danny L

unread,
Sep 2, 2009, 2:28:46 PM9/2/09
to symfony payment developers
I tested plug in and I found that it does'n handle good the things in
some critical situations - when buyer pays with different currency
from the seller defined currencies , and when there is need to be
verifyed (accepted ) transaction


this code is from
sfPaymentPayPalPlugin/lib/sfPaymentPayPal.class.php

/**
* Check if the payment status is completed after ipn validation
*
* @return boolean
*/
public function isCompleted() {
$payment_status = $this->ipnData['payment_status'];
$pending_reason = $this->ipnData['pending_reason'];
if ($payment_status == "Completed" || ($payment_status == "Pending"
&& $pending_reason=="verify") || ($payment_status == "Pending" &&
$pending_reason=="multi_currency"))


//if($this->ipnData['payment_status'] == 'Completed')
return true;
else
return false;
}

On Sep 2, 8:17 am, Antoine Leclercq <antoine.lecle...@gmail.com>
wrote:
> Hi,
> Thank you for your email.
>
> You can also apply to be developer on the sfPaymentPayPalPlugin plugin page
> on symfony (http://www.symfony-project.org/plugins/sfPaymentPayPalPlugin),
> this way you can contribute on your own branch.
>
> I'll validate your account asap.
>
> Thanks.
>
> Antoine
>
> On Tue, Sep 1, 2009 at 9:10 PM, jiap <g.castellu...@gmail.com> wrote:
>
> > Hello guys,
>
> >       I'm developing an extension of your plugin where you can pay
> > for multiple items.
>
> > look this example of fields configuration:
>
> > cmd: _cart
> > rm: 2
> > return: /frontend_dev.php/sfPaymentPayPal/success
> > cancel_return: /frontend_dev.php/sfPaymentPayPal/failure
> > notify_url: /frontend_dev.php/sfPaymentPayPal/ipn
> > business: t...@business.com

Antoine Leclercq

unread,
Sep 3, 2009, 1:35:27 AM9/3/09
to symfony-payme...@googlegroups.com
Hi Danny,

Thank you for your feedback.

We are working on an updated version of the plugins which will better handle those situations.

Antoine
Reply all
Reply to author
Forward
0 new messages