Site icon Student Projects Live

Online Auction Multi Currency Module Explained

Online Auction Multi Currency Module Explained – Created CRUD page for Multi currency and API code integrated for Online Auction Project. The multi-currency helps you to handle business and transactions in the global market effortlessly. With the multi-currency feature you can Estimate the value of a deal in your home currency as well as in your customer’s local currency. The Administrator must add the home currency and other currencies before doing any transactions.


Purpose for this Task

This will enable multiple currencies for Online Auction Project. This will display Real-time Secure World Currencies within a few seconds. Finding a good currency conversion API can be difficult, so we’ve simplified it for you.






Add New Currency redirecting to currency.php and View currency redirecting to viewcurrency.php



Online Auction Multi Currency Module Explained

In this Default mentioned USD. You can change this as per your requirement.

<?php
// latest with specific base currency
$url = "https://freecurrencyapi.net/api/v2/latest?apikey=ecda1440-792a-156ec-aef3-abcf7514dceb&base_currency=USD";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
?>

{“query”:{“apikey”:”ecda6120-7945a-1123-ae56-abcf7523dceb”,”base_currency”:”USD”,”timestamp”:1642619395},”data”:{“JPY”:114.27822,”CNY”:6.34972,”CHF”:0.9159,”CAD”:1.2491,”MXN”:20.45328,”INR”:74.38575,”BRL”:5.46576,”RUB”:76.24889,”KRW”:1184.22817,”IDR”:14360.20403,”TRY”:13.40061,”SAR”:3.75139,”SEK”:9.09831,”NGN”:414.01238,”PLN”:3.98511,”ARS”:104.24276,”NOK”:8.76469,”TWD”:27.61139,”IRR”:42000.71211,”AED”:3.67257,”COP”:3990.4569,”THB”:32.91074,”ZAR”:15.29982,”DKK”:6.55867,”MYR”:4.19105,”SGD”:1.34727,”ILS”:3.12722,”HKD”:7.79053,”EGP”:15.66036,”PHP”:51.44095,”CLP”:808.91006,”PKR”:175.85513,”IQD”:1458.5418,”DZD”:139.43485,”KZT”:436.48637,”QAR”:3.65419,”CZK”:21.39258,”PEN”:3.8555,”RON”:4.3553,”VND”:22700.5063,”BDT”:85.95096,”HUF”:313.21262,”UAH”:28.27005,”AOA”:536.0086,”MAD”:9.26375,”OMR”:0.38471,”CUC”:24.00044,”BYR”:2.58963,”AZN”:1.69502,”LKR”:201.00409,”SDG”:437.00835,”SYP”:2510.05661,”MMK”:1769.5327,”DOP”:57.68084,”UZS”:10812.50826,”KES”:113.35151,”GTQ”:7.70017,”URY”:44.56118,”HRV”:6.63238,”MOP”:8.0262,”ETB”:49.45063,”CRC”:630.11747,”TZS”:2304.04496,”TMT”:3.49008,”TND”:2.87394,”PAB”:1.00001,”LBP”:1505.7241,”RSD”:103.52123,”LYD”:4.56752,”GHS”:6.09014,”YER”:250.00312,”BOB”:6.82009,”BHD”:0.37691,”CDF”:1998.11714,”PYG”:6966.19242,”UGX”:3519.05145,”SVC”:8.7499,”TTD”:6.73427,”AFN”:104.96217,”NPR”:119.07212,”HNL”:24.40949,”BIH”:1.72525,”BND”:1.34702,”ISK”:127.8113,”KHR”:4062.04834,”GEL”:3.06008,”MZN”:63.18136,”BWP”:11.56085,”PGK”:3.54179,”JMD”:154.00338,”XAF”:577.95642,”NAD”:15.29342,”ALL”:107.20315,”SSP”:429.38258,”MUR”:43.65085,”MNT”:2830.06125,”NIO”:35.56041,”LAK”:11275.32488,”MKD”:54.16059,”AMD”:480.6622,”MGA”:3981.55055,”XPF”:104.86218,”TJS”:11.29025,”HTG”:99.92026,”BSD”:1.00003,”MDL”:17.95018,”RWF”:1026.52187,”KGS”:84.78993,”GNF”:8985.23479,”SRD”:21.16329,”SLL”:11367.18721,”XOF”:575.01619,”MWK”:808.31447,”FJD”:2.10975,”ERN”:15.05023,”SZL”:15.29332,”GYD”:207.98215,”BIF”:1992.03879,”KYD”:0.82501,”MVR”:15.42038,”LSL”:15.28779,”LRD”:149.50362,”CVE”:97.16198,”DJF”:177.50309,”SCR”:14.48354,”SOS”:575.01481,”GMD”:53.10142,”KMF”:433.57509,”STD”:21.60145,”XRP”:1.36765,”AUD”:1.38985,”BGN”:1.72333,”BTC”:0.0242,”JOD”:0.70692,”GBP”:0.73497,”ETH”:0.00032,”EUR”:0.88112,”LTC”:0.00741,”NZD”:1.47286}}


API taken from:

https://freecurrencyapi.net


Our currency API offers an extensive range of world currencies.


View Currency page


View more about Online Auction Project:

Exit mobile version