Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please set payout function also #68

Open
vishaldobariya opened this issue Dec 27, 2024 · 0 comments
Open

Please set payout function also #68

vishaldobariya opened this issue Dec 27, 2024 · 0 comments

Comments

@vishaldobariya
Copy link

const URIS = [
'auth' => 'oauth2/token/',
'payments' => 'v'.self::API_VERSION.'/payments/',
'payment_requests' => 'v'.self::API_VERSION.'/payment_requests/',
'gateway_orders' => 'v'.self::API_VERSION.'/gateway/orders/',
'refunds' => 'v'.self::API_VERSION.'/refunds/',
'payouts' => 'v'.self::API_VERSION.'/payouts/',
'payoutsdetails' => 'v'.self::API_VERSION.'/payouts?id=',
];

public function createPayout($arrayParams)
{
// payment request id
$data = [
'json' => $arrayParams
];

    $response = $this->request_api_data('POST', Instamojo::URIS['payouts'], $data);
    
    return $response;
}

public function getPayoutDetails($strInstamojoPaymentId)
{
    return  $this->request_api_data('GET', Instamojo::URIS['payoutsdetails'].$strInstamojoPaymentId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant