Welcome, Guest
Username: Password: Remember me

TOPIC: some problem with payment and administrator forms

some problem with payment and administrator forms 1 year 4 months ago #3982

  • mortezafs
  • mortezafs's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
hello.
i'm morteza. an iranian joomla developer.
one of our customer bought your component for him small business, and we want develop your system based on user needs.
we see some problem in your system.
please guidance us if we wrong.
problems:
1.payment plugin.
in payment plugin data will be update but user wasn't redirect to true path after true/failed transactions.
tip: zarinpal gateway code attached.

File Attachment:

File Name: zarinpal.zip
File Size:10 KB


2. may not writing plugin for append some other field to administrator forms.
in "deal " form or other administrator forms we can't use joomla events like "onContentPrepareForm" or "onContentBeforeSave". that wasn't work. we saw your codes and we belive you should use dynamic from creataion to some event like "onContentPrepareForm" work very good. until to your view file for this forms, every thing's good.

Regards
The administrator has disabled public write access.

some problem with payment and administrator forms 1 year 4 months ago #3983

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1526
  • Thank you received: 238
  • Karma: 26
Hi,

1. Is your onCMPaymentValidate function working and returns true or false correctly.

2. We don't use plugin events, you will need to add these form directly instead of using a plugin.

Regards,
Hung
The administrator has disabled public write access.
The following user(s) said Thank You: mortezafs

some problem with payment and administrator forms 1 year 4 months ago #3984

  • mortezafs
  • mortezafs's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
1- yes. parameters returned successfully to main file.
we return this parameters to component after true payment.
$result['validation'] = true; // validation type
    $result['payment_id'] = $this->paymentId; // payment ID
    $result['transaction_info'] = $verifyRequest->RefID; // authority code
    $result['order_id'] = $orderID; // order_id
database well updated but doesn't redirect.
i sent plugin code for you in last post. we wrote our code like your other payment method, like paypal.

2- if we add these form directly and you change this forms in your updates in future then all of our change will be lose
is it possible add plugin event in your next version release?
Last Edit: 1 year 4 months ago by mortezafs.
The administrator has disabled public write access.

some problem with payment and administrator forms 1 year 4 months ago #3985

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1526
  • Thank you received: 238
  • Karma: 26
Hi,

If your payment service provider supports redirects after a purchase, you need to give me the return URLs and let them redirect for you. PayPal is an example of this. If they don't support this, you need to customize components/com_cmgroupbuying/controllers/order.php to add your own redirect code, you can find the code of other providers in there.

We will consider to use plugin event in the future release.

Regards,
Hung Tran
The administrator has disabled public write access.
The following user(s) said Thank You: mortezafs