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

Swipestripe not redirecting to Paypal and errors


Go to End


2 Posts   2136 Views

Avatar
Fraser

Community Member, 48 Posts

6 October 2014 at 4:58am

Edited: 06/10/2014 5:13am

I'm trying to complete the build of a store but seem to be having issues with the Paypal integration.

I'm using Silverstripe 3.1.0 with the Payment module and the Payment-Paypal module

I've set up my mysite/_config/config.yml like so:

Name: payment
After: 'framework/*','cms/*'
---
PaymentGateway:
  environment:
    'dev'
PaymentProcessor:
  supported_methods:
    dev:
      - 'PayPalExpress'
    live:
      - 'PayPalExpress'

and my mysite/_config/payment.yml like so:

PaymentGateway:
  environment:
    'live'

PaymentProcessor:
  supported_methods:
    dev:
      - 'PayPalExpress'
    live:
      - 'PayPalExpress'

PayPalGateway_Express: 
  live:
    authentication:
      username: 'myliveusername'
      password: 'mylivepassword'
      signature: 'mylivesignature'
  dev:
    authentication:
      username: 'mydevusername'
      password: 'mydevpassword'
      signature: 'mydevsignature'

When I enter billing/shipping info and go to submit the form to pay, I briefly get a screen of errors (all of them being: [Deprecated] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
POST /checkout/OrderForm
Line 207 in /Users/fraser/Documents/Work/sitefolder/wwwroot/site/swipestripe/thirdparty/Emogrifier.php) before getting redirected to an order confirmation screen (xxxxxxx.com/account/order/xxx (where xxx is the order id)). It doesn't send me to paypal to make payment.

The order confirmation screen informs me that the order is unpaid. Following the link to complete payment, I'm prompted to proceed to pay with paypal again and it loops me back around saying the order is unpaid.

Have I done something wrong in my setup or is this an issue that people are aware of?

Thanks

Avatar
YoungEarth

Community Member, 7 Posts

4 February 2015 at 3:34pm

To get rid of the error being displayed you could download the latest Emogrifier.php
https://github.com/jjriv/emogrifier OR set error_reporting(E_ERROR)