Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Error on return message from the payment gateway?

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 781 Views
  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Error on return message from the payment gateway? Link to this post

    Hi

    I have a shopping cart setup that passes info out to a payment gateway (Paymate). The transaction gets processed and the site returns the purchaser to my site ... My problem is getting my Paid function to work or rather I think to be used.

    Paymate is returning to $callbackURL but I get the error HTTP Status 404 - /npaymate/www.itsmylife.co.nz/SilverStripe/PaymatePayment_Handler/paid/4. I am guessing it has something to do with not being an absolute base URL but where is it set? I can't find it to check.

    Thanks

    Catherine

  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Re: Error on return message from the payment gateway? Link to this post

    The definition was further up in the code which I just changed callbackURL ='https://' . ereg_replace('^[a-zA-Z]+://','',Director::absoluteBaseURL(). 'PaymatePayment_Handler/paid/' . $this->ID); to solve the issue.

    MM
          

    781 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.