Bigtt76's Posts
Nairaland Forum › Bigtt76's Profile › Bigtt76's Posts
1 2 3 4 5 6 7 8 ... 548 549 550 551 552 553 554 555 556 (of 587 pages)
Hmmm ...its just that 'when its too good to be true ....it surely might bite you too hard' nor vex ya we don learn de hard way! |
5hyguy: In the code you gave to me thrs no where to specify that, or whr am I supposed to specify that?Sorry about the call drop. The page you want the applicant to go to after payment is stated and given to Pay4me during setup. They configure all that for you. If you can, send me your application's Response Notification URL (where the platform posts successful transactions on your portal to) as well as the URL you want your applicants redirected to on successful payment I will get them change my demo settings to yours. |
5hyguy: nice one, very flexible and easy to use, the only thing is the page that has to be printed as a proof of payment cant be customized, it always has to be their page. unlike if you were intergrating directly with interswtich, you could easily specify what page it redirects to after payment. do you getYes you specify a page to redirect to after payment by the applicant. When a payment is successful, the applicant sees a button which when clicked redirects him/her to the page the site owner wants them to be redirected to for example a customized thank you page, confirmation page or receipt page. |
5hyguy: Aiite, so I just nid to add an action attri to my form and call dis particular snippet in a pageSure. You need to be assigned with a Merchant ID (326), Merchant Code (1551060007) and Merchant Key (1466509421) try this and see if you can get a redirect to the gateway. If you succeed then u're done and need to contact them at info@pay4me.com for necessary production setup details |
5hyguy: Its not compulsory its interswitch, is there an alternative? Hw straight forward is d implementation, like I luv paypals integration that uses simple javascript, I wanted to call u, but felt ul b @ work, so I can call nytym rightThere's Pay4me and this is a sample script to send payment request to their gateway <?php //NOTE: This is assigned to merchants by Pay4me for use on the Demo Environment $merchant_id = ; $item_num = mt_rand(1000,9999); //$trans_num = mt_rand(1000,99999999999); $sch = mt_rand(100,9999); //NOTE: This is assigned to merchants by Pay4me for use on the Demo Environment $merchant_code = ""; //NOTE: This is assigned to merchants by Pay4me for use on the Demo Environment $merchant_key = ""; $item_id = $_POST['item_id']; $name = $_POST['item_name']; $item_description = $_POST['item_description']; $price = $_POST['amount']; send_payment_request($merchant_id, $item_id, $item_num, $price, $item_description, $name, $merchant_code, $merchant_key, $sch); function send_payment_request($merchant_id, $item_id, $item_num, $price, $item_description, $name, $merchant_code, $merchant_key, $sch) { $request = '<?xml version="1.0" encoding="UTF-8"?> <order xmlns="http://www.pay4me.com/schema/pay4meorder/v1"> <merchant-service id="'.$merchant_id.'"> <item number="'.$item_num.'"> <transaction-number>9876543210</transaction-number> <name>'.$name.'</name> <description>'.$item_description.'</description> <price>'.$price.'</price> <currency>naira</currency> <parameters> <parameter name="ref_no">'.$sch.'</parameter> </parameters> </item> </merchant-service> </order>'; $header[] = "Authorization: Basic ".base64_encode($merchant_code.":".$merchant_key); $header[] = "Content-Type: application/xml;charset=UTF-8"; $header[] = "Accept: application/xml;charset=UTF-8 "; $url = "http://pay4me.demo.swgindia.com/order/payment/payprocess/v1/PID/".$merchant_code; //Demo Environment URL //$url = "https://www.pay4me.com/order/payment/payprocess/v1/PID/".$merchant_code; // Production Environment URL $ch = curl_init(); //initialize curl handle // enable below 2 linesfor https sites curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_URL, $url); //set the url curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //return as a variable //curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); //set POST method curl_setopt($ch, CURLOPT_POSTFIELDS, $request); //set the POST variables curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); $response = curl_exec($ch); //run the whole process and return the response curl_close($ch); //close the curl handle $xdoc = new DOMDocument(); $isLoaded = $xdoc->loadXML($response); $rurl = $xdoc->getElementsByTagName('redirect-url')->item(0)->nodeValue ; header("Location: $rurl" ;} ?> They offer the Interswitch Verve and Master Card Naira as well as VISA Card Processing. The Bank option is also available for payment processing and of course their eWallet system which enables bulk payment transactions without having to put in card details each time. You can explore them for a change. |
5hyguy: Hmmm do u mind if I gv u a call something, I think things would be really clear please, thanksOk. One question ..must you integrate with Interswitch? Why not go for one which is cost free and is an aggregator? Buzz me when you can. |
I said it before ...someone (husband or wife) has kolo ...sad though. Even more sad Sahara Reporters are making a kill out of this because he is PDP ...time we stop all these sensationalism. |
Hahaha ...can't wait to hear Ebenzer Obey shout ....'IT's Don Jazzy! Or Don Jazzy tun ti de oo! ![]() |
Noted! |
So who go come accuse dem both for stealing the name 'Baby Face'? Or den nor sabi Kenny Edmonds? |
Na bad she do? It was still going to come out anyway. Stop sensationalizing things ![]() |
Hmmm ..market time for Bloggers more news on this for them to dish out #ewu |
5hyguy: Or probably am confusing my self, the variables dat are supposed to be hashed do they change per user who uses d form,or do we nid to create a form for every type of product or service u selling,Yes the variables change for every form or every transaction carried out. For every form filled on your site, there ought to be a unique txn_ref, product_id and pay_item_id (note the txn_ref is like your receipt number, product_id maybe numbers you categorize the forms into such membership premium or membership gold etc while the pay_item_id you can use something unique). These numbers can be randomly generated using this function mt_rand(100,9999) as maybe the case for txn_ref and pay_item_id while for the product_id you can use static numbers. The MAC key would be assigned to you by Interswitch and is your own unique identifier with them. |
Bad press for such an up coming role model ..SMH |
Why did he not provide adequate security for the wife? Na so e wan take protect and love her? |
1. You create your form which an applicant or user is to submit through your site 2. Ensure that the cost of the form is displayed on a 'confirmation' page which the applicant or user is to click on to trigger the payment process 3. Create a payment script which will derive its variables from the 'confirmation' page to send to the Interswitch Gateway in the format expected and post to the URL <form name="form1" action="https://stageserv.interswitchng.com/test_paydirect/pay" method="post"> <input name="product_id" type="hidden" value="XX" /> <input name="pay_item_id" type="hidden" value="XX" /> <input name="amount" type="hidden" value="XXXXXXX" /> <input name="currency" type="hidden" value="566" /> <input name="site_redirect_url" type="hidden" value="http://abc.com /getresponse”/> <input name="txn_ref" type="hidden" value=" XXXAFTXXX”" /> <input name="hash" type="hidden" value="BB292DF9268F05CB9CBBC5E0C13CC1B13ACA34DC" /> </form> 4. The Hash you need to compute using SHA512 can be done from this site http://www.fileformat.info/tool/hash.htm? It is a combination of the following (I guess this is where you found difficult?) You can also generate same in your script using the format hash('sha512', $variables_represented_by_the details_each_shown_below) txn_ref 7645536 product_id 174 pay_item_id 23 amount 1000000 site_redirect_url http://www.yoursite.com/return/ MAC key AC43543FA32234HB23423AFH843535 Note that the MAC key would assigned to you by Interswitch for production. environment The rest of the process is pretty straight forward. |
Hahaha ...you get work shaaaa! Like seriously when I see 'Self Service' representing 'M@$ turbation' sounds funny though cause when I see same on DSTV portal I cannot but laugh my a$s out! ![]() |
Market loss the main reason. What can a blackberry do that an Android cannot? Give that package to Android users and you will be the best network in the whole world ![]() |
What do you mean by 'sha format automatically'? Please explain further. |
No option to prack and go free? Peopo una suppose jail una nor jail, peopo wey nor get natin una catch for street. Lek say una make economy better, den nor for de hwak t0t0 for street. God de watch una |
Story! I wonder why den nor tok say e go give holders free Visa to UK or ticket to go watch match for Emirates ....#park #well #jooor |
Na who no know go follow #ashi de fight for street ![]() |
Talk to Don Jazzy! This should also be point of example to those small small boys musicians - Davido and Wizkid its only lurking round the corner, it will happen someday. They better start planning for the future. |
Una for pursue am to catch naa! Park wan side jooor! |
Wonder why all the hues and cries over Amaechi and Jonathan was all about sef. They only need Dickson to call Amaechi to order ....see size naaa! ![]() |
Of course naaa ...we all know what happens when 'activists', 'opposing' politicians and even aggressive youths, gets invited to a meeting at Aso Rock. The result is always 'fruitful' and 'rock-fully' solid as a Ghana Must Go Bag. ASUU go guys! Note when you come out from the meeting and you resume classes, you did so because your supposedly 'agreement' reached (God knows when) has been fully met and satisfied. WE DO NOT want to hear that this or that was not met next year ooo! As you guys also resume, please kindly ensure that all those kettles and stoves replacing Bunsen Burner/Boiler etc in our University Laboratories, poor habitable accommodation facilities etc ...make sure they are all in order before you agree anything with the FG else we the students will follow you guys up o! ![]() |
nchewi: Well, am Commenting because this thread made frontpage!!!You get plenty fat from pig (lard) compared to cow! |
NASRDA? Jokers ...why den satellite nore pick Stella Oduah when she de arrange tif money buy BMW? #ewu ....wasting Nigeria's money since 2004 |
Na wao ..you just fall hand o! Babe wan buy UK used BlackBerry or Tecno P4 you nor gree ...which fone she been de use sef? ![]() |
Nobody reads books any mmorein Lagos or elsewhere ...just pinging, wstsapping, 2go so dont invest and lose. |
And she paid you to advertise for her? |
1 2 3 4 5 6 7 8 ... 548 549 550 551 552 553 554 555 556 (of 587 pages)
we don learn de hard way!
;