Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

Currency exchange shortcode
(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: Currency exchange shortcode

Currency exchange shortcode 12 years, 4 months ago #723

  • afrwood
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I see that your simple sales there are choices of currency but the sales altimately occur in Kenya shillings, do you have a shortcodes we could use to change US$ to Ksh, we are offering PesaPal as an alternative to PayPal but the base currency is US$, when clients switch to PesaPal from the default PayPal, it switches the currency sign but retains the numerical value! Say $100 becomes Ksh100, not good!
We could use an external currency exchange plugin but would prefer to use a PesaPal short-code, that way the exchange matches the prevailing PesaPal rates.
A currency US$ conversion to Ksh. Or an exchange rate callcode that reads the days exchange rate from PesaPal will do just fine
Last Edit: 12 years, 4 months ago by afrwood. Reason: Exchange Rate Callcode
The following user(s) said Thank You: Edwin_php

Re: Currency exchange shortcode 12 years, 3 months ago #739

  • Edwin_php
  • OFFLINE
  • Fresh Boarder
  • Part Time PHP Tinkerer.
  • Posts: 11
No one replied to this.Anyway most shopping carts have a plugin in built for this. You can do the same thing too.Just add an iframe that does conversions after totals if the currency is different than yours before you charge. I am sure that there are lots of sites that do this but i can help too.
The following user(s) said Thank You: afrwood

Re: Currency exchange shortcode 12 years, 3 months ago #740

  • Edwin_php
  • OFFLINE
  • Fresh Boarder
  • Part Time PHP Tinkerer.
  • Posts: 11
And it is USD to KSH

Re: Currency exchange shortcode 12 years, 3 months ago #741

  • afrwood
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Edwin_php wrote:
No one replied to this.Anyway most shopping carts have a plugin in built for this. You can do the same thing too.Just add an iframe that does conversions after totals if the currency is different than yours before you charge. I am sure that there are lots of sites that do this but i can help too.


Thanks @Edwin_php we used a java script to get the exchange rates from a web service, slow but steadily! We interchange PayPal and PesaPal as gateways on our crowdfunding portal so we needed USD to KES

Re: Currency exchange shortcode 12 years, 3 months ago #745

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

PesaPal has provided a way in which you can specify the currency. See below:

$post_xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<PesapalDirectOrderInfo
xmlns:xsi=\"www.w3.org/2001/XMLSchema-instance\"
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\" />";

The curreny code you use should be the standard ISO code. Check the codes here en.wikipedia.org/wiki/ISO_4217
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