Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

SilverShop Omnipay PayPal Internal Error


Go to End


2 Posts   1511 Views

Avatar
Vix

Community Member, 60 Posts

14 July 2016 at 3:58pm

I have set up Silvershop using PayPal with the following config details:

Payment:
  file_logging: 1
  allowed_gateways:
    - 'PayPal_Express'
  parameters:
    PayPal_Express:
      username: 'xxx'
      password: 'xxx
      signature: 'xxx'
      testMode: true

When I come to pay for the items I get redirected to PayPal, I submit my sandbox account details and all seems well and good, then I return to my site and see the error 'Internal Error'. Once (and only once the payment went through). But this message is so vague I have no idea where to start looking to track down the actual error. Or why just once it went through.

The odd thing about the one that went through was I was redirected to the PayPal site that has the old styling, not the more modern looking site.

Has anyone else experienced this? Know where to start looking?

Avatar
andyleenz

Community Member, 1 Post

3 August 2016 at 9:24pm

Did you manage to solve this?

I'm getting a similar error using the PaymentExpress omnipay module..

I get: Cannot redirect to an empty URL

67      * @param string $url The URL to redirect to
68      *
69      * @return RedirectResponse The current response
70      *
71      * @throws \InvalidArgumentException
72      */
73     public function setTargetUrl($url)
74     {
75         if (empty($url)) {
76             throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
77         }
78 
79         $this->targetUrl = $url;
80 
81         $this->setContent(
82             sprintf('<!DOCTYPE html>

Anyone know what the problem could be?