Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: Cashenvoy Payment Integration
#1
i want to integrate cashenvoy on a website,here is the php code




<?
// this file shows how you can call the CashEnvoy payment interface from your online store

// your CashEnvoy merchant id
$cemertid = 5824;

// your merchant key (login to your cashenvoy account, your merchant key is displayed on the dashboard page)
$key = '2dawdszfcasdq24434242ffsdsfd';

// transaction reference which must not contain any special characters. Numbers and alphabets only.
$cetxref ='A115656';

// transaction amount
$ceamt = 1000.44;

// customer id does not have to be an email address but must be unique to the customer
$cecustomerid = 'xyz@abc.com';

// a description of the transaction
$cememo = 'Purchase of a DELL 1525';

// notify url - absolute url of the page to which the user should be directed after payment
// an example of the code needed in this type of page can be found in example_requery_usage.php
$cenurl = 'http://www.youronlinestore.com/paymentcomplete.php';

// generate request signature
$data = $key.$cetxref.$ceamt;
$signature = hash_hmac('sha256', $data, $key, false);
?>
<body onLoad="document.submit2cepay_form.submit()">
<!--
Note: Replace https://www.cashenvoy.com/sandbox2/?cmd=cepay with https://www.cashenvoy.com/webservice/?cmd=cepay once you have been switched to the live environment.
-->
<form method="post" name="submit2cepay_form" action="https://www.cashenvoy.com/sandbox2/?cmd=cepay" target="_self">
<input type="hidden" name="ce_merchantid" value="<?= $cemertid ?>"/>
<input type="hidden" name="ce_transref" value="<?= $cetxref ?>"/>
<input type="hidden" name="ce_amount" value="<?= $ceamt ?>"/>
<input type="hidden" name="ce_customerid" value="<?= $cecustomerid ?>"/>
<input type="hidden" name="ce_memo" value="<?= $cememo ?>"/>
<input type="hidden" name="ce_notifyurl" value="<?= $cenurl ?>"/>
<input type="hidden" name="ce_window" value="self"/><!-- self or parent -->
<input type="hidden" name="ce_signature" value="<?= $signature ?>"/>
</form>
</body>




but this is the error I get error


*Error - Request is does not contain all required parameters.*
I am a proud member of NIgerian Coders Team
#2
@laive @dealwap
I am a proud member of NIgerian Coders Team
Reply
#3
Check the form fields, you must be missing some required data. I advice you go through their documentation again.
It takes so long to learn simplicity.
Reply
#4
Try paystack.co they even have js embedded integration.
Reply
#5
(09-26-2018, 05:25 PM)theauthor Wrote:
Try paystack.co they even have js embedded integration.


the require me to upload some files for my business..like the cac register stuffs...how do you go about this
I am a proud member of NIgerian Coders Team
Reply
#6
(09-26-2018, 11:04 PM)Nostory Wrote:
the require me to upload some files for my business..like the cac register stuffs...how do you go about this


See this https://paystack.com/blog/product/paysta...businesses
Reply
#7
sirs am a wp expert and once very good in wapka when wapka was Alives so what can I offer to support
Reply




Users browsing this thread: djtazzy, 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise