PayPal gateway has rejected request. Payment has already been made for this InvoiceIDPayPal gateway has rejected request MagentoHow to solve the problem of PayPal gateway has rejected request?PayPal gateway has rejected request MagentoPayPal gateway has rejected payment requestPayment has already been made for this InvoiceID (#10412: Duplicate invoice)PayPal gateway has rejected request 10413Magento 2 - PayPal Express Checkout duplicate invoice idPayPal gateway has rejected request. A successful transaction has already been completed for this tokenError Cancelling Order… PayPal gateway has rejected request. Authorization has expired (#10601: Authorization expired)Paypal issue: PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)PayPal gateway has rejected request. Item amount is invalid (#10431)

Are there variations of the regular runtimes of the Big-O-Notation?

No such column 'DeveloperName' on entity 'RecordType' after Summer '19 release on sandbox

Why did they go to Dragonstone?

What is the name of meteoroids which hit Moon, Mars, or pretty much anything that isn’t the Earth?

Further factorisation of a difference of cubes?

A Cunning Riley Riddle

Which other programming languages apart from Python and predecessor are out there using indentation to define code blocks?

How to make a language evolve quickly?

How do I compare the result of "1d20+x, with advantage" to "1d20+y, without advantage", assuming x < y?

Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019

What's the difference between const array and static const array in C/C++

Is every story set in the future "science fiction"?

What can cause an unfrozen indoor copper drain pipe to crack?

How are one-time password generators like Google Authenticator different from having two passwords?

Why does it take longer to fly from London to Xi'an than to Beijing

Create less file for custom Theme

Why do protein solutions have to be alkalised in biuret test?

Is this state of Earth possible, after humans left for a million years?

Is there a need for better software for writers?

The meaning of a て-form verb at the end of this sentence

Names of the Six Tastes

We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?

Intersecting with the x-axis / intersecting the x-axis

Why does a variable size struct not compile in the Arduino IDE?



PayPal gateway has rejected request. Payment has already been made for this InvoiceID


PayPal gateway has rejected request MagentoHow to solve the problem of PayPal gateway has rejected request?PayPal gateway has rejected request MagentoPayPal gateway has rejected payment requestPayment has already been made for this InvoiceID (#10412: Duplicate invoice)PayPal gateway has rejected request 10413Magento 2 - PayPal Express Checkout duplicate invoice idPayPal gateway has rejected request. A successful transaction has already been completed for this tokenError Cancelling Order… PayPal gateway has rejected request. Authorization has expired (#10601: Authorization expired)Paypal issue: PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)PayPal gateway has rejected request. Item amount is invalid (#10431)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















I tried for an hour, but I can't find the solution. I using sandbox account for paypal check out and I need express check out, credit and debit card and paypal account payment method, how can configured this. I got error after express or paypal.




PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)











share|improve this question






























    6















    I tried for an hour, but I can't find the solution. I using sandbox account for paypal check out and I need express check out, credit and debit card and paypal account payment method, how can configured this. I got error after express or paypal.




    PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)











    share|improve this question


























      6












      6








      6








      I tried for an hour, but I can't find the solution. I using sandbox account for paypal check out and I need express check out, credit and debit card and paypal account payment method, how can configured this. I got error after express or paypal.




      PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)











      share|improve this question
















      I tried for an hour, but I can't find the solution. I using sandbox account for paypal check out and I need express check out, credit and debit card and paypal account payment method, how can configured this. I got error after express or paypal.




      PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)








      magento-1.9 paypal payment-methods paypal-express






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 16 '15 at 19:50









      7ochem

      5,89993770




      5,89993770










      asked Dec 16 '15 at 19:23









      SAMSAM

      3113




      3113




















          4 Answers
          4






          active

          oldest

          votes


















          0














          Have you recently switched servers or is this on a development server?



          You may have to change your increment_id.



          https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/






          share|improve this answer






























            0














            If you are using sandbox mode, Then delete the all orders refresh the cache problem will solve. Simple!






            share|improve this answer























            • This way your solving the symptom not the problem, if there is one that is.

              – vitoriodachef
              May 4 '18 at 9:41



















            0














            By default, magento set the paypal invoice number (INVNUM) equal to the order increment id. This is a good practice because it allows you to have a one to one mapping between your order and the transaction.



            You may get this error message if you or your teammates have sent the same invoice number to paypal before using the same paypal sandbox account. I would suggest you to add the hostname and username as the prefix of the invoice number and add the timestamp as suffix, so that the invoice number will always be unique when you are testing your checkout process. For paypal express checkout, I added the following codes right before if it sends the request in the callSetExpressCheckout method in app/code/community/Mage/Paypal/Model/Api/Nvp.php:



            // if it's in the testing mode, add a prefix to avoid duplicates
            if (Mage::getStoreConfig('paypal/wpp/sandbox_flag'))
            $processUser = posix_getpwuid(posix_geteuid());
            $request["INVNUM"] = gethostname().'-'.$processUser['name'].'-'.$request['INVNUM'].'-'.time();






            share|improve this answer






























              0














              There are few scenarios in which you can work out this issue which is returned in PayPal response.



              Before doing this changes understand and know your Magento websites, PayPal settings and Magento Instances (dev, staging, production).



              1. Test orders, again and again, posting to Paypal after cleaning orders database tables, so maybe it is sending old invoices. Can add some prefix in an invoice.

              Check here - https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/



              1. Can create some test orders via admin so Magento will send another invoice or order to PayPal, But make sure to create admin orders after adding any prefix value.


              2. PayPal account settings: Only if you are using same PayPal account for multiple websites or else you have more than one instance of Magento of same website.


              PayPal providing feature that whether to block or to allow invoice ID.



              Logged in Standard PayPal Account > Profile > Payment Receiving Preferences:
              On this page you will find "Block accidental payments"
              set "Allow multiple payments per invoice ID".



              enter image description here
              So one of the tips will get resolve PayPal duplicate invoice Id issue.






              share|improve this answer























                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "479"
                ;
                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: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                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%2fmagento.stackexchange.com%2fquestions%2f94048%2fpaypal-gateway-has-rejected-request-payment-has-already-been-made-for-this-invo%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                Have you recently switched servers or is this on a development server?



                You may have to change your increment_id.



                https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/






                share|improve this answer



























                  0














                  Have you recently switched servers or is this on a development server?



                  You may have to change your increment_id.



                  https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/






                  share|improve this answer

























                    0












                    0








                    0







                    Have you recently switched servers or is this on a development server?



                    You may have to change your increment_id.



                    https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/






                    share|improve this answer













                    Have you recently switched servers or is this on a development server?



                    You may have to change your increment_id.



                    https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 16 '15 at 19:56









                    BrideoBrideo

                    35418




                    35418























                        0














                        If you are using sandbox mode, Then delete the all orders refresh the cache problem will solve. Simple!






                        share|improve this answer























                        • This way your solving the symptom not the problem, if there is one that is.

                          – vitoriodachef
                          May 4 '18 at 9:41
















                        0














                        If you are using sandbox mode, Then delete the all orders refresh the cache problem will solve. Simple!






                        share|improve this answer























                        • This way your solving the symptom not the problem, if there is one that is.

                          – vitoriodachef
                          May 4 '18 at 9:41














                        0












                        0








                        0







                        If you are using sandbox mode, Then delete the all orders refresh the cache problem will solve. Simple!






                        share|improve this answer













                        If you are using sandbox mode, Then delete the all orders refresh the cache problem will solve. Simple!







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jun 11 '16 at 10:09









                        Anup ChaudharyAnup Chaudhary

                        297111




                        297111












                        • This way your solving the symptom not the problem, if there is one that is.

                          – vitoriodachef
                          May 4 '18 at 9:41


















                        • This way your solving the symptom not the problem, if there is one that is.

                          – vitoriodachef
                          May 4 '18 at 9:41

















                        This way your solving the symptom not the problem, if there is one that is.

                        – vitoriodachef
                        May 4 '18 at 9:41






                        This way your solving the symptom not the problem, if there is one that is.

                        – vitoriodachef
                        May 4 '18 at 9:41












                        0














                        By default, magento set the paypal invoice number (INVNUM) equal to the order increment id. This is a good practice because it allows you to have a one to one mapping between your order and the transaction.



                        You may get this error message if you or your teammates have sent the same invoice number to paypal before using the same paypal sandbox account. I would suggest you to add the hostname and username as the prefix of the invoice number and add the timestamp as suffix, so that the invoice number will always be unique when you are testing your checkout process. For paypal express checkout, I added the following codes right before if it sends the request in the callSetExpressCheckout method in app/code/community/Mage/Paypal/Model/Api/Nvp.php:



                        // if it's in the testing mode, add a prefix to avoid duplicates
                        if (Mage::getStoreConfig('paypal/wpp/sandbox_flag'))
                        $processUser = posix_getpwuid(posix_geteuid());
                        $request["INVNUM"] = gethostname().'-'.$processUser['name'].'-'.$request['INVNUM'].'-'.time();






                        share|improve this answer



























                          0














                          By default, magento set the paypal invoice number (INVNUM) equal to the order increment id. This is a good practice because it allows you to have a one to one mapping between your order and the transaction.



                          You may get this error message if you or your teammates have sent the same invoice number to paypal before using the same paypal sandbox account. I would suggest you to add the hostname and username as the prefix of the invoice number and add the timestamp as suffix, so that the invoice number will always be unique when you are testing your checkout process. For paypal express checkout, I added the following codes right before if it sends the request in the callSetExpressCheckout method in app/code/community/Mage/Paypal/Model/Api/Nvp.php:



                          // if it's in the testing mode, add a prefix to avoid duplicates
                          if (Mage::getStoreConfig('paypal/wpp/sandbox_flag'))
                          $processUser = posix_getpwuid(posix_geteuid());
                          $request["INVNUM"] = gethostname().'-'.$processUser['name'].'-'.$request['INVNUM'].'-'.time();






                          share|improve this answer

























                            0












                            0








                            0







                            By default, magento set the paypal invoice number (INVNUM) equal to the order increment id. This is a good practice because it allows you to have a one to one mapping between your order and the transaction.



                            You may get this error message if you or your teammates have sent the same invoice number to paypal before using the same paypal sandbox account. I would suggest you to add the hostname and username as the prefix of the invoice number and add the timestamp as suffix, so that the invoice number will always be unique when you are testing your checkout process. For paypal express checkout, I added the following codes right before if it sends the request in the callSetExpressCheckout method in app/code/community/Mage/Paypal/Model/Api/Nvp.php:



                            // if it's in the testing mode, add a prefix to avoid duplicates
                            if (Mage::getStoreConfig('paypal/wpp/sandbox_flag'))
                            $processUser = posix_getpwuid(posix_geteuid());
                            $request["INVNUM"] = gethostname().'-'.$processUser['name'].'-'.$request['INVNUM'].'-'.time();






                            share|improve this answer













                            By default, magento set the paypal invoice number (INVNUM) equal to the order increment id. This is a good practice because it allows you to have a one to one mapping between your order and the transaction.



                            You may get this error message if you or your teammates have sent the same invoice number to paypal before using the same paypal sandbox account. I would suggest you to add the hostname and username as the prefix of the invoice number and add the timestamp as suffix, so that the invoice number will always be unique when you are testing your checkout process. For paypal express checkout, I added the following codes right before if it sends the request in the callSetExpressCheckout method in app/code/community/Mage/Paypal/Model/Api/Nvp.php:



                            // if it's in the testing mode, add a prefix to avoid duplicates
                            if (Mage::getStoreConfig('paypal/wpp/sandbox_flag'))
                            $processUser = posix_getpwuid(posix_geteuid());
                            $request["INVNUM"] = gethostname().'-'.$processUser['name'].'-'.$request['INVNUM'].'-'.time();







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 22 '17 at 15:30









                            Max Pan ZiyuanMax Pan Ziyuan

                            1




                            1





















                                0














                                There are few scenarios in which you can work out this issue which is returned in PayPal response.



                                Before doing this changes understand and know your Magento websites, PayPal settings and Magento Instances (dev, staging, production).



                                1. Test orders, again and again, posting to Paypal after cleaning orders database tables, so maybe it is sending old invoices. Can add some prefix in an invoice.

                                Check here - https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/



                                1. Can create some test orders via admin so Magento will send another invoice or order to PayPal, But make sure to create admin orders after adding any prefix value.


                                2. PayPal account settings: Only if you are using same PayPal account for multiple websites or else you have more than one instance of Magento of same website.


                                PayPal providing feature that whether to block or to allow invoice ID.



                                Logged in Standard PayPal Account > Profile > Payment Receiving Preferences:
                                On this page you will find "Block accidental payments"
                                set "Allow multiple payments per invoice ID".



                                enter image description here
                                So one of the tips will get resolve PayPal duplicate invoice Id issue.






                                share|improve this answer



























                                  0














                                  There are few scenarios in which you can work out this issue which is returned in PayPal response.



                                  Before doing this changes understand and know your Magento websites, PayPal settings and Magento Instances (dev, staging, production).



                                  1. Test orders, again and again, posting to Paypal after cleaning orders database tables, so maybe it is sending old invoices. Can add some prefix in an invoice.

                                  Check here - https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/



                                  1. Can create some test orders via admin so Magento will send another invoice or order to PayPal, But make sure to create admin orders after adding any prefix value.


                                  2. PayPal account settings: Only if you are using same PayPal account for multiple websites or else you have more than one instance of Magento of same website.


                                  PayPal providing feature that whether to block or to allow invoice ID.



                                  Logged in Standard PayPal Account > Profile > Payment Receiving Preferences:
                                  On this page you will find "Block accidental payments"
                                  set "Allow multiple payments per invoice ID".



                                  enter image description here
                                  So one of the tips will get resolve PayPal duplicate invoice Id issue.






                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    There are few scenarios in which you can work out this issue which is returned in PayPal response.



                                    Before doing this changes understand and know your Magento websites, PayPal settings and Magento Instances (dev, staging, production).



                                    1. Test orders, again and again, posting to Paypal after cleaning orders database tables, so maybe it is sending old invoices. Can add some prefix in an invoice.

                                    Check here - https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/



                                    1. Can create some test orders via admin so Magento will send another invoice or order to PayPal, But make sure to create admin orders after adding any prefix value.


                                    2. PayPal account settings: Only if you are using same PayPal account for multiple websites or else you have more than one instance of Magento of same website.


                                    PayPal providing feature that whether to block or to allow invoice ID.



                                    Logged in Standard PayPal Account > Profile > Payment Receiving Preferences:
                                    On this page you will find "Block accidental payments"
                                    set "Allow multiple payments per invoice ID".



                                    enter image description here
                                    So one of the tips will get resolve PayPal duplicate invoice Id issue.






                                    share|improve this answer













                                    There are few scenarios in which you can work out this issue which is returned in PayPal response.



                                    Before doing this changes understand and know your Magento websites, PayPal settings and Magento Instances (dev, staging, production).



                                    1. Test orders, again and again, posting to Paypal after cleaning orders database tables, so maybe it is sending old invoices. Can add some prefix in an invoice.

                                    Check here - https://www.warpconduit.net/2012/04/18/how-to-change-the-order-increment-id-and-prefix-in-magento/



                                    1. Can create some test orders via admin so Magento will send another invoice or order to PayPal, But make sure to create admin orders after adding any prefix value.


                                    2. PayPal account settings: Only if you are using same PayPal account for multiple websites or else you have more than one instance of Magento of same website.


                                    PayPal providing feature that whether to block or to allow invoice ID.



                                    Logged in Standard PayPal Account > Profile > Payment Receiving Preferences:
                                    On this page you will find "Block accidental payments"
                                    set "Allow multiple payments per invoice ID".



                                    enter image description here
                                    So one of the tips will get resolve PayPal duplicate invoice Id issue.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Oct 27 '18 at 9:01









                                    sandipsandip

                                    1,2642822




                                    1,2642822



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Magento Stack Exchange!


                                        • 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%2fmagento.stackexchange.com%2fquestions%2f94048%2fpaypal-gateway-has-rejected-request-payment-has-already-been-made-for-this-invo%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







                                        Popular posts from this blog

                                        Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                                        Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                                        Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?