Razorpay Payment
I am trying to integrate Razorpay in my php codeigniter application (Cart Based).
Here I Put a request of eg: 250INR to Razorpay through Javascript.
But When I try to capture that money, I want to split that amount as multiple transactions.
In this case I am getting an error of Authorized amount and capturing amount should be same.
How Can I do this??
Thanks
php codeigniter razorpay
add a comment |
I am trying to integrate Razorpay in my php codeigniter application (Cart Based).
Here I Put a request of eg: 250INR to Razorpay through Javascript.
But When I try to capture that money, I want to split that amount as multiple transactions.
In this case I am getting an error of Authorized amount and capturing amount should be same.
How Can I do this??
Thanks
php codeigniter razorpay
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25
add a comment |
I am trying to integrate Razorpay in my php codeigniter application (Cart Based).
Here I Put a request of eg: 250INR to Razorpay through Javascript.
But When I try to capture that money, I want to split that amount as multiple transactions.
In this case I am getting an error of Authorized amount and capturing amount should be same.
How Can I do this??
Thanks
php codeigniter razorpay
I am trying to integrate Razorpay in my php codeigniter application (Cart Based).
Here I Put a request of eg: 250INR to Razorpay through Javascript.
But When I try to capture that money, I want to split that amount as multiple transactions.
In this case I am getting an error of Authorized amount and capturing amount should be same.
How Can I do this??
Thanks
php codeigniter razorpay
php codeigniter razorpay
asked Nov 6 '18 at 7:41
user10611830user10611830
1
1
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25
add a comment |
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25
add a comment |
2 Answers
2
active
oldest
votes
You are supposed to capture total transaction amount of a particular order,partial capturing is not supported. Pls read the docs
https://docs.razorpay.com/docs/v1paymentsidcapture

add a comment |
To support partial payments either use razorpay payment links and enable the partial payment option. But in that case the user decides the partial payment amount he will be paying.
If you want to control the amount in each partial payment. Then you have to make different orders in razorpay corresponding to each partial payment. And handle the total amount at your end.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53167627%2frazorpay-payment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are supposed to capture total transaction amount of a particular order,partial capturing is not supported. Pls read the docs
https://docs.razorpay.com/docs/v1paymentsidcapture

add a comment |
You are supposed to capture total transaction amount of a particular order,partial capturing is not supported. Pls read the docs
https://docs.razorpay.com/docs/v1paymentsidcapture

add a comment |
You are supposed to capture total transaction amount of a particular order,partial capturing is not supported. Pls read the docs
https://docs.razorpay.com/docs/v1paymentsidcapture

You are supposed to capture total transaction amount of a particular order,partial capturing is not supported. Pls read the docs
https://docs.razorpay.com/docs/v1paymentsidcapture

answered Nov 18 '18 at 14:17
Firdous bhatFirdous bhat
286
286
add a comment |
add a comment |
To support partial payments either use razorpay payment links and enable the partial payment option. But in that case the user decides the partial payment amount he will be paying.
If you want to control the amount in each partial payment. Then you have to make different orders in razorpay corresponding to each partial payment. And handle the total amount at your end.
add a comment |
To support partial payments either use razorpay payment links and enable the partial payment option. But in that case the user decides the partial payment amount he will be paying.
If you want to control the amount in each partial payment. Then you have to make different orders in razorpay corresponding to each partial payment. And handle the total amount at your end.
add a comment |
To support partial payments either use razorpay payment links and enable the partial payment option. But in that case the user decides the partial payment amount he will be paying.
If you want to control the amount in each partial payment. Then you have to make different orders in razorpay corresponding to each partial payment. And handle the total amount at your end.
To support partial payments either use razorpay payment links and enable the partial payment option. But in that case the user decides the partial payment amount he will be paying.
If you want to control the amount in each partial payment. Then you have to make different orders in razorpay corresponding to each partial payment. And handle the total amount at your end.
answered 17 hours ago
himankhimank
10913
10913
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53167627%2frazorpay-payment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
From where you pass the amount in javascript and the post value to razorpay both are must be same. Can you share some part of your code here?
– Poonam Navapara
Nov 6 '18 at 7:51
$api->payment->fetch($payment_id)->capture(array('amount'=>($tempInfo->amount*100)));
– user10611830
Nov 6 '18 at 8:25
Can I make it by creating order ??
– user10611830
Nov 6 '18 at 8:25