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

Error on return message from the payment gateway?


Go to End


2 Posts   1304 Views

Avatar
mschiefmaker

Community Member, 187 Posts

18 November 2009 at 8:27am

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

Avatar
mschiefmaker

Community Member, 187 Posts

22 November 2009 at 4:46pm

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