Home Forums GetFund – A Professional Laravel Crowdfunding Platform Payments / Donations not showing

  • #1529

    dplans
    Participant

    473

    Payments / Donations not showing

    Hello
    I made some donations to a campaign on my website here – https://raisefunds.ng/home/campaign/14/test
    the donations don’t show up in the admin payments, user payments, or funds raised in the campaign.
    I need help in solving this issue asap.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • #1530

    dplans
    Participant

    PS: Payments were made via a payment gateway I integrated – (Paystack.com)
    Thanks.

    #1542

    Please look over below code

    
       public function paypalNotify(Request $request, $transaction_id){
            //todo: need to  be check
            $payment = Payment::whereLocalTransactionId($transaction_id)->where('status','!=','success')->first();
    
            $verified = paypal_ipn_verify();
            if ($verified){
                //Payment success, we are ready approve your payment
                $payment->status = 'success';
                $payment->charge_id_or_token = $request->txn_id;
                $payment->description = $request->item_name;
                $payment->payer_email = $request->payer_email;
                $payment->payment_created = strtotime($request->payment_date);
                $payment->save();
            }else{
                $payment->status = 'declined';
                $payment->description = trans('app.payment_declined_msg');
                $payment->save();
            }
            // Reply with an empty 200 response to indicate to paypal the IPN was received correctly
            header("HTTP/1.1 200 OK");
        }
    

    Your payment are succeeding here $payment->status = 'success';

    Please read carefully your payment gateway instructions to achieve IPN request or something like that

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)

Purchase for access

Buy a copy of GetFund – A Professional Laravel Crowdfunding Platform for access to our member center.

Buy