anandsiddharth / laravel-paytm-wallet

Integrate paytm wallet in your laravel application easily with this package. This package uses official Paytm PHP SDK's.
MIT License
92 stars 40 forks source link

Refund status API calling wrong endpoint #72

Open Aniket-IN opened 2 years ago

Aniket-IN commented 2 years ago

Hi, I think the refund status api calling the wrong endpoint, it's calling the txn status endpoint noy the Refund Status endpoint.

I'm doing like:

$refundStatus = PaytmWallet::with('refund_status');
$refundStatus->prepare([
    'order' => '3-1652688667',
    'reference' => 'R1-3-1652688667',
]);
$refundStatus->check();

it retuns status of the received payment's status, not the refunded txn.

Thank you.