- Posts: 86290
- Thank you received: 14268
new payment method
Please Log in or Create an account to join the conversation.
in paypal method at onPaymentNotification function which code or line update order status to confirmed after when payment is ok
it's paypal onPaymentNotification function
I want use this method in my payment method for update order status automatically at database if payment is ok.
thank you
Please Log in or Create an account to join the conversation.
$orderClass->save($order);
The $order object contains the new status added with the line:
$order->order_status = $element->payment_params->verified_status;
and the order_id added with the line:
$order->order_id = $dbOrder->order_id;
Please Log in or Create an account to join the conversation.
my bank send me referenceId with POST method I should save it in my database it's my bank Transaction Code
now which field of order table at database I can save it? it's necessary for save at database.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think that you'll be able to save it by using this kind of code :
Please Log in or Create an account to join the conversation.
now I should show my user payment result massage after payment
which code I can use at onPaymentNotification function for echo my bank massage for ok payment or not ok payment.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I'll need more information about the payment process of this payment method, because if your customer is redirected to your notification URL after the payment your should use this kind of code :
- put this code at the begining of your function :
Note that you'll have to set your order ID into the $YOUR_ORDER_ID variable.
Please Log in or Create an account to join the conversation.
with this code:
$app->enqueueMessage('YOUR SUCCESS MESSAGE');
can I show to my user bank TransactionCode payment code?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
My all payment process is:
I send to my bank this information:
after it my bank send me with POST method $resultCode and $referenceId ( it's my bank Transaction code )
and $paymentID ( it's my order_id ) to my $return_url
after bank send theme I should verify my costomer payment with use nusoap class and after verify if my $resultCode is ok
costumer payment is ok and save order at database and confirmed it.
please help me my problem in verify and save at database.
thank you
Please Log in or Create an account to join the conversation.
For the order status saving to the database, it's quite easy. If you have the order_id in $paymentID, you can do like that:
Please Log in or Create an account to join the conversation.
Excuse me.
i have my bank verify sample but my problem is:
my bank send with method POST to $return_url now can I take theme at onPaymentNotification function?
Please Log in or Create an account to join the conversation.
Like that for example:
Please Log in or Create an account to join the conversation.
can I show my user ok payment result massage and TransactionCode or not ok payment massage after payment?
Mr Mohamed say if my customer is redirected to notification URL use it
Please Log in or Create an account to join the conversation.
If it redirects the user's browser to the notification, then you can simply echo your text directly.
Please Log in or Create an account to join the conversation.
how can I echo $paymentID = $_POST; or result code at onPaymentNotification function
Because I want to test Is I get them or not.
thank you
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
I use it but my log file is empty I think don't receive result code with $_POST in onPaymentNotification function
this is my onPaymentNotification function please check it for me.
thank you for your best support
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I use this:
Fatal error: Call to a member function save() on a non-object in plugins\hikashoppayment\tejarat\tejarat.php on line 385
please check my onPaymentNotification what is problem
thank you
Please Log in or Create an account to join the conversation.