Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

PesaPal PHP Example
(1 viewing) (1) Guest
Welcome to the Pesapal integration forum!

This forum discusses everything about Pesapal integration on your web site. Having any problems? This is the right place to post a question and we are sure you will get an answer
  • Page:
  • 1
  • 2

TOPIC: PesaPal PHP Example

Re: PesaPal PHP Example 9 years, 2 months ago #1956

  • Jenga
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi,
I am having trouble completing my transaction( Demo Transaction). I want to pay using mobile money i.e TigoPesa or MPesa, and I have already made a dummy payment through demo.pesapal.com/mobilemoneytest and received the required code. But when I enter the details, I get an error "Invalid URI: The hostname could not be parsed."

Thanks In Advance!

Re: PesaPal PHP Example 9 years, 2 months ago #1958

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Greetings Jenga,

You need to define your URL explicitly.

I.e include the full URL link including the domain name.
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: Jenga

Re: PesaPal PHP Example 9 years, 2 months ago #1959

  • Jenga
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thanks for the reply.
Where do I have to define this explicit URL ?

Re: PesaPal PHP Example 9 years, 2 months ago #1961

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Please refer to the PHP Example. You will find the code below somewhere in the code

$callback_url = '[domain]/pesapalPHPExample/redirect.php'; //URL user to be redirected to after payment
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.

Re: PesaPal PHP Example 9 years, 2 months ago #1963

  • Jenga
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Yeah it worked!!!

Thanks for your quick support!

Re: PesaPal PHP Example 9 years, 2 months ago #1964

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Great!

You are welcome.
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.

Re: PesaPal Opencart Intergration 9 years, 1 month ago #1987

thanks for your help. i manage to configure it to work on the demo mode but when ready to publish or run it live it dosent run. what may be the problem

Re: PesaPal PHP Example 8 years, 9 months ago #2054

  • paul86
  • OFFLINE
  • Junior Boarder
  • Posts: 23
in top.php, $sitelink = '[domain]/pesapalPHPExample. Do i replace domain and leave "pesapalPHPExample"? Which url do u call to test the application?

Thanks
  • Page:
  • 1
  • 2