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

Route sdk #241

Merged
merged 5 commits into from
Oct 7, 2021
Merged

Route sdk #241

merged 5 commits into from
Oct 7, 2021

Conversation

sonyy-m
Copy link
Contributor

@sonyy-m sonyy-m commented Sep 16, 2021

Updated Orders and Payments file to implement fetch transfers of an order and to fetch payments of a linked account.
Please review those files.

@sonyy-m sonyy-m requested a review from neera11 September 16, 2021 12:38
README.md Show resolved Hide resolved
$transfer = $api->transfer->create(array('account' => 'acc_HjVXbtpSCIxENR', 'amount' => 500, 'currency' => 'INR')); // Creates direct transfer from merchant's account
$transfers = $api->order->fetch($orderId)->transfers(array('expand[]'=>'transfers')); // Fetch all transfers created on order
$transfer = $api->transfer->fetch($transferId); // Fetch a transfer
$transfers = $api->transfer->all(array('recipient_settlement_id'=> $settlementId)); // Fetch all transfers made for particular settlement id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check working of
$transfers = $api->transfer->all(array('recipient_settlement_id'=> $settlementId));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working fine. I have checked with beta apis as we didn't process settlements on test mode.

src/Payment.php Show resolved Hide resolved
src/Payment.php Outdated Show resolved Hide resolved
Copy link
Contributor

@neera11 neera11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonyy-m sonyy-m assigned sonyy-m and unassigned sonyy-m Sep 24, 2021
@HancilSequeira HancilSequeira merged commit a6553b2 into master Oct 7, 2021
@sonyy-m sonyy-m deleted the route-sdk branch April 26, 2022 11:22
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

Successfully merging this pull request may close these issues.

3 participants