Payment method plugin issue

  • Sathishkumar govindaraju
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #120981 by Sathishkumar govindaraju
Payment method plugin issue was created by Sathishkumar govindaraju
Hello Team,

I am using Event Booking latest version.

and I am created payment plugin with paytabs api and e-gHL api all things is working fine but it is not calling verifyPayment function of payment class's member function.

So please help me how I can call it?

Thanks
Sanjeev

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #120996 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment method plugin issue
Hello Sanjeev

That depends on the payment gateway you are using.Somehow, you will have to tell the payment gateway to send notification to this URL

yoursitedomain.com/index.php?option=com_..._payment_plugin_name

Of course yoursitedomain.com needs to be replaced with the site domain and os_payment_plugin_name must be replaced with name of the payment plugin which you are developing

In os_paypal payment plugin for example, we register it via notify_url parameter (look at components/com_eventbooking/payments/os_paypal.php line 116 to see the sample line of code)

Please check it and let us know if you have other questions

Regards,

Tuan
The following user(s) said Thank You: Sathishkumar govindaraju

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #120997 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment method plugin issue
We have detailed documentation and code skeleton which you can read at github.com/joomdonation/os_eb_redirect to get the principle

Tuan

Please Log in or Create an account to join the conversation.

  • Sathishkumar govindaraju
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #121001 by Sathishkumar govindaraju
Replied by Sathishkumar govindaraju on topic Payment method plugin issue
Hi, Thanks for response.

I am using os_eghl payment method to create plugin.
There are using following parameters :-
$data = array(

'PymtMethod' => 'ANY',

'OrderNumber' => ''.$ordernum.'',

//'PaymentID' => 'OMNI001', // if not defined, its generated automatically

'PaymentDesc' => $data,

'MerchantReturnURL' => $siteUrl .'components/com_eventbooking/payments/vendor/return.php',

'MerchantCallBackURL' => $siteUrl .'components/com_eventbooking/payments/vendor/callback.php',

'Amount' => round($data, 2),

'CurrencyCode' => $data,

'CustName' => $data,

'CustEmail' => $data,

'CustPhone' => '01156301987',

'Param6' => 'custom',

'PageTimeout' => 700

);



$PurchaseResponse = $gateway->purchase($data)->send();

if ($PurchaseResponse->isRedirect()) {

// redirect to offsite payment gateway

//echo "<pre>".print_r($PurchaseResponse->getRedirectData(),1)."</pre>";
//echo "<pre>".print_r($PurchaseResponse->getRedirectUrl(),1)."</pre>";
$PurchaseResponse->redirect();
}


So there response comes always on return.php file. It is not going to verify_payment(). this is my problem.
Please have a look and let me know what I should do there?
Thanks!!

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #121002 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment method plugin issue
Look at components/com_eventbooking/payments/os_paypal.php as an example:

- MerchantReturnURL should be the same with return parameter, mean $siteUrl . 'index.php?option=com_eventbooking&view=complete&Itemid=' . $Itemid

- MerchantCallBackURL should be the same with notify_url, mean index.php?option=com_eventbooking&task=payment_confirm&payment_method=os_eghl

Please Log in or Create an account to join the conversation.

  • Sathishkumar govindaraju
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #121006 by Sathishkumar govindaraju
Replied by Sathishkumar govindaraju on topic Payment method plugin issue
I have done like you suggested. but I am getting error after payment.
Please have a look website form and try test it please.

lazybird.proteonsoftware.us/index.php/bl...ividual-registration

There is registration form

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #121009 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment method plugin issue
Sorry but I could not do that. I don't know how your payment gateway works, so I could not check and tell you what's wrong

You can ask me any technical questions related to payment plugin development, but it must be a general question and not specific to a payment gateway.

To develop payment gateway, you will have to read their developer document and develop it yourself. The only way I can help is reading their development document to understand what data they pass back to your website when payment completed, how to validate and make sure the payment is valid, but I cannot afford to do that, it will take much time

So you will have to read github.com/joomdonation/os_eb_redirect again to see how to develop a payment plugin and try to correct the error yourself

I can answer technical questions, but it's just how a payment plugin works, not how to correct errors with your own payment gateway

Hope you understand

Tuan
The following user(s) said Thank You: Sathishkumar govindaraju

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #121012 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment method plugin issue
BTW, what's the error you are having? You can attach a screenshot of that error page so that I can take a quick look to see whether I knows why the error happens and hopefully, can guide you where to check

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc