Razorpay Payment












-1















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










share|improve this question























  • 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
















-1















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










share|improve this question























  • 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














-1












-1








-1








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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












2 Answers
2






active

oldest

votes


















0














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



enter image description here






share|improve this answer































    0














    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.






    share|improve this answer























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      0














      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



      enter image description here






      share|improve this answer




























        0














        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



        enter image description here






        share|improve this answer


























          0












          0








          0







          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



          enter image description here






          share|improve this answer













          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



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 '18 at 14:17









          Firdous bhatFirdous bhat

          286




          286

























              0














              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.






              share|improve this answer




























                0














                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.






                share|improve this answer


























                  0












                  0








                  0







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 17 hours ago









                  himankhimank

                  10913




                  10913






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      這個網誌中的熱門文章

                      Academy of Television Arts & Sciences

                      L'Équipe

                      1995 France bombings