Payum / PayumYiiExtension

Rich payment solutions for Yii framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
https://payum.forma-pro.com/
MIT License
12 stars 16 forks source link

PAGESTYLE support #20

Closed alexandernst closed 10 years ago

alexandernst commented 10 years ago

Hi @makasim ! I'm looking into the PAGESTYLE parameter that is passed for custom page styles. Is it supported?

makasim commented 10 years ago

Sorry I dont know anything about PAGESTYLE. Could you provide more info so I can help.

alexandernst commented 10 years ago

Sure :) It's somewhere in the middle of this page.

makasim commented 10 years ago

ok, just add:

<?php 

$details['PAGESTYLE'] = 'TestMerchant';

This way you can add any parameters that paypal support. Payum uses payment specific format for the data, in this case format of paypal, Here for example we set bunch of other options to make paypal page more useful: https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/PayumBundle/Payum/Paypal/Action/CapturePaymentUsingExpressCheckoutAction.php#L37

alexandernst commented 10 years ago

I was guessing it should be something like that, but initial tests didn't work. Maybe PayPal's sandbox doesn't support styles?

Let me run some more tests in prod. I'll re-open this if I need further help. Thank you! :wink: