Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

Pesapal Virtuemart Currency Issues
(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

TOPIC: Pesapal Virtuemart Currency Issues

Pesapal Virtuemart Currency Issues 12 years, 2 months ago #485

  • adrianqx
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi I am using joomla 2.5, virtuemart 2.0.22a and the pesapal virtuemart plugin by ajamgwe v2 , when I make purchases in USD $ eg $100 and click on confirm I get the pesapal choose payment option only problem is that it in ksh100 instead of the chosen currency.
Any ideas on how to fix this ?

Re: Pesapal Virtuemart Currency Issues 12 years, 2 months ago #487

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Hi adrianqx,

Locate where the xml is built and add the currency value to it.

Change

$post_xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><PesapalDirectOrderInfo xmlns:xsi=\"www.w3.org/2001/XMLSchemainstance\" xmlns:xsd=\"www.w3.org/2001/XMLSchema\" Amount=\"".$amount."\" Description=\"".$desc."\" Type=\"".$type."\" Reference=\"".$reference."\" FirstName=\"".$first_name."\" LastName=\"".$last_name."\" Email=\"".$email."\" PhoneNumber=\"".$phonenumber."\" xmlns=\"www.pesapal.com\" />";


to


$post_xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><PesapalDirectOrderInfo xmlns:xsi=\"www.w3.org/2001/XMLSchemainstance\" xmlns:xsd=\"www.w3.org/2001/XMLSchema\" Currency=\"".$currency."\" Amount=\"".$amount."\" Description=\"".$desc."\" Type=\"".$type."\" Reference=\"".$reference."\" FirstName=\"".$first_name."\" LastName=\"".$last_name."\" Email=\"".$email."\" PhoneNumber=\"".$phonenumber."\" xmlns=\"www.pesapal.com\" />";
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.
  • Page:
  • 1