/home/kueuepay/public_html/app/Notifications/User/TransferMoneyReceivedNotification.php
<?php

namespace App\Notifications\User;

use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;

class TransferMoneyReceivedNotification extends Notification
{
    use Queueable;
    public $amount;
    public $receiver;
    /**
     * Create a new notification instance.
     *
     * @return void
     */
    public function __construct($amount,$receiver)
    {
        $this->amount           = $amount;
        $this->receiver         = $receiver;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return ['mail'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable)
    {
        $amount             = $this->amount;
        $receiver           = $this->receiver;
        $date               = Carbon::now();
        $dateTime           = $date->format('Y-m-d h:i:s A');

        return (new MailMessage)
            ->greeting("Hello ". $receiver->fullname." !")
            ->subject("Transfer Money From  " . auth()->user()->email)
            ->line("Amount: " . get_amount($amount,get_default_currency_code()))
            ->line("Status: Success " )
            ->line("Date And Time: " .$dateTime)
            ->line('Thank you for using our application!');
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            //
        ];
    }
}
Check Payment

Check Payment Status

Checks the status of a payment.

            
                
**Response: SUCCESS (200 OK)**
{
 "message": {
 "success": [
  "Success"
 ]
},
"data": {
 "token": "2zMRmT3KeYT2BWMAyGhqEfuw4tOYOfGXKeyKqehZ8mF1E35hMwE69gPpyo3e",
 "trx_id": "CP44657864",
 "payer": {
  "username": "testuser",
  "email": "user@appdevs.net"
 }
 "status": "Test",
},
"type": "success"
}