-
Notifications
You must be signed in to change notification settings - Fork 134
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
SDKs-PHP for cards #240
SDKs-PHP for cards #240
Conversation
README.md
Outdated
|
||
// Customers | ||
$customer = $api->customer->create(array('name' => 'Razorpay User', 'email' => '[email protected]')); // Creates customer | ||
$customer = $api->customer->fetch($customerId); // Returns a particular customer | ||
$customer = $api->customer->edit(array('name' => 'Razorpay User', 'email' => '[email protected]')); // Edits customer | ||
|
||
// Tokens | ||
$token = $api->customer->token()->fetch($tokenId); // Returns a particular token | ||
$token = $api->customer->fetch($customerId)->tokens()->fetch($tokenId); // Returns a particular token | ||
$tokens = $api->customer->token()->all($options); // Returns array of token objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corret this $api->customer->token()->all($options)
also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i update this function and add seprate comments for card module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i update this function and there is no need to pass optional param
https://razorpay.com/docs/api/recurring-payments/cards/tokens/#22-fetch-tokens-by-customer-id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ff81cb0
to
f63c37b
Compare
card module with update README