Override PaymentExtensionInterfaceMagento2 add custom address attributeExtension attributes showing null value in in Magento 2magento 2 custom api return in json without response tagMagento offline custom Payment method with drop down listWhat is the correct way to create Mock input interface in Web-Api functional test?Magento 2.3 Can't view module's front end page output?“PasswordHash” does not have accessor method “getPasswordHash” in class “MagentoCustomerApiDataCustomerInterface”How implement form in payment methodMagento 2.3 email attachment not working while sending custom emailWhen is Onepage SaveOrder being triggered | Magento Plugin

Misrepresented my work history

Why is Pr(A | (B and C)) = Pr(A | C) if A and B are independent?

Swapping "Good" and "Bad"

The three greedy pirates

Would a carnivorous diet be able to support a giant worm?

Found and corrected a mistake on someone's else paper -- praxis?

How to drill holes in 3/8" steel plates?

How can I effectively communicate to recruiters that a phone call is not possible?

Why archangel Michael didn't save Jesus when he was crucified?

Misspelling my name on my mathematical publications

Integer Lists of Noah

Why is a mixture of two normally distributed variables only bimodal if their means differ by at least two times the common standard deviation?

Help figuring a formula for my job

[Future]Historical experience as a guide to warship design?

What happens to unproductive professors?

Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?

Why does every calorie tracking app give a different target calorie count for the same goals?

Does a wizard need their hands free in order to cause their familiar from the Find Familiar spell to reappear?

What is /bin/red

Chorophyll and photosynthesis in plants with coloured leaves

Is this a reference to the film Alien in the novel 2010 Odyssey Two?

What would +1/+2/+3 items be called in game?

Having decision making power over someone's assets

Backspace functionality in normal mode



Override PaymentExtensionInterface


Magento2 add custom address attributeExtension attributes showing null value in in Magento 2magento 2 custom api return in json without response tagMagento offline custom Payment method with drop down listWhat is the correct way to create Mock input interface in Web-Api functional test?Magento 2.3 Can't view module's front end page output?“PasswordHash” does not have accessor method “getPasswordHash” in class “MagentoCustomerApiDataCustomerInterface”How implement form in payment methodMagento 2.3 email attachment not working while sending custom emailWhen is Onepage SaveOrder being triggered | Magento Plugin






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








0















I'm trying to add a new field via KO in the payment method where paymentdata is collected. Right now all I see is the agreement_id as part of it's parameter. Now I added another parameter which is the subscription_id. But upon clicking the proceed button it say




Property "SubscriptionIds" does not have accessor method "getSubscriptionIds" in class "MagentoQuoteApiDataPaymentExtensionInterface".




Now I can't find this class in vendor/magento/module-quote/Api/Data. I need to overwrite this class right now it's being defined in the generated folder the content is this



<?php
namespace MagentoQuoteApiData;

/**
* Extension class for @see MagentoQuoteApiDataPaymentInterface
*/
class PaymentExtension extends MagentoFrameworkApiAbstractSimpleObject implements PaymentExtensionInterface

/**
* @return string[]


But I can't find this in the vendor folder even though I looked in the vendor/magento/module-quote/Api/Data



Any idea on how to override this? As I need to retrieve the new parameter when submitting the order in the payment method page










share|improve this question




























    0















    I'm trying to add a new field via KO in the payment method where paymentdata is collected. Right now all I see is the agreement_id as part of it's parameter. Now I added another parameter which is the subscription_id. But upon clicking the proceed button it say




    Property "SubscriptionIds" does not have accessor method "getSubscriptionIds" in class "MagentoQuoteApiDataPaymentExtensionInterface".




    Now I can't find this class in vendor/magento/module-quote/Api/Data. I need to overwrite this class right now it's being defined in the generated folder the content is this



    <?php
    namespace MagentoQuoteApiData;

    /**
    * Extension class for @see MagentoQuoteApiDataPaymentInterface
    */
    class PaymentExtension extends MagentoFrameworkApiAbstractSimpleObject implements PaymentExtensionInterface

    /**
    * @return string[]


    But I can't find this in the vendor folder even though I looked in the vendor/magento/module-quote/Api/Data



    Any idea on how to override this? As I need to retrieve the new parameter when submitting the order in the payment method page










    share|improve this question
























      0












      0








      0








      I'm trying to add a new field via KO in the payment method where paymentdata is collected. Right now all I see is the agreement_id as part of it's parameter. Now I added another parameter which is the subscription_id. But upon clicking the proceed button it say




      Property "SubscriptionIds" does not have accessor method "getSubscriptionIds" in class "MagentoQuoteApiDataPaymentExtensionInterface".




      Now I can't find this class in vendor/magento/module-quote/Api/Data. I need to overwrite this class right now it's being defined in the generated folder the content is this



      <?php
      namespace MagentoQuoteApiData;

      /**
      * Extension class for @see MagentoQuoteApiDataPaymentInterface
      */
      class PaymentExtension extends MagentoFrameworkApiAbstractSimpleObject implements PaymentExtensionInterface

      /**
      * @return string[]


      But I can't find this in the vendor folder even though I looked in the vendor/magento/module-quote/Api/Data



      Any idea on how to override this? As I need to retrieve the new parameter when submitting the order in the payment method page










      share|improve this question














      I'm trying to add a new field via KO in the payment method where paymentdata is collected. Right now all I see is the agreement_id as part of it's parameter. Now I added another parameter which is the subscription_id. But upon clicking the proceed button it say




      Property "SubscriptionIds" does not have accessor method "getSubscriptionIds" in class "MagentoQuoteApiDataPaymentExtensionInterface".




      Now I can't find this class in vendor/magento/module-quote/Api/Data. I need to overwrite this class right now it's being defined in the generated folder the content is this



      <?php
      namespace MagentoQuoteApiData;

      /**
      * Extension class for @see MagentoQuoteApiDataPaymentInterface
      */
      class PaymentExtension extends MagentoFrameworkApiAbstractSimpleObject implements PaymentExtensionInterface

      /**
      * @return string[]


      But I can't find this in the vendor folder even though I looked in the vendor/magento/module-quote/Api/Data



      Any idea on how to override this? As I need to retrieve the new parameter when submitting the order in the payment method page







      magento2 magento2.2 magento2.3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 1 at 13:54









      MadzQuestioningMadzQuestioning

      2639 bronze badges




      2639 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          First of all, you cannot override PaymentExtensionInterface - it is generated piece of code.



          If you want to define a new field, similar to agreement_ids you should create extension_attributes.xml file in your Company/Module/etc directory with a content like this:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
          <extension_attributes for="MagentoQuoteApiDataPaymentInterface">
          <attribute code="subscription_id" type="string" />
          </extension_attributes>
          </config>


          Getters and setters for subscribtion_id attribute will be generated by Magento and will be present in PaymentExtensionInterface.



          You can find more info here: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html



          Unfortunately, example in docs is more about shipping than billing step form, but take a look at Magento's checkout-agreements module for some ideas.






          share|improve this answer










          New contributor



          Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            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%2f280331%2foverride-paymentextensioninterface%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            First of all, you cannot override PaymentExtensionInterface - it is generated piece of code.



            If you want to define a new field, similar to agreement_ids you should create extension_attributes.xml file in your Company/Module/etc directory with a content like this:



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
            <extension_attributes for="MagentoQuoteApiDataPaymentInterface">
            <attribute code="subscription_id" type="string" />
            </extension_attributes>
            </config>


            Getters and setters for subscribtion_id attribute will be generated by Magento and will be present in PaymentExtensionInterface.



            You can find more info here: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html



            Unfortunately, example in docs is more about shipping than billing step form, but take a look at Magento's checkout-agreements module for some ideas.






            share|improve this answer










            New contributor



            Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.























              0














              First of all, you cannot override PaymentExtensionInterface - it is generated piece of code.



              If you want to define a new field, similar to agreement_ids you should create extension_attributes.xml file in your Company/Module/etc directory with a content like this:



              <?xml version="1.0"?>
              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
              <extension_attributes for="MagentoQuoteApiDataPaymentInterface">
              <attribute code="subscription_id" type="string" />
              </extension_attributes>
              </config>


              Getters and setters for subscribtion_id attribute will be generated by Magento and will be present in PaymentExtensionInterface.



              You can find more info here: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html



              Unfortunately, example in docs is more about shipping than billing step form, but take a look at Magento's checkout-agreements module for some ideas.






              share|improve this answer










              New contributor



              Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                0












                0








                0







                First of all, you cannot override PaymentExtensionInterface - it is generated piece of code.



                If you want to define a new field, similar to agreement_ids you should create extension_attributes.xml file in your Company/Module/etc directory with a content like this:



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
                <extension_attributes for="MagentoQuoteApiDataPaymentInterface">
                <attribute code="subscription_id" type="string" />
                </extension_attributes>
                </config>


                Getters and setters for subscribtion_id attribute will be generated by Magento and will be present in PaymentExtensionInterface.



                You can find more info here: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html



                Unfortunately, example in docs is more about shipping than billing step form, but take a look at Magento's checkout-agreements module for some ideas.






                share|improve this answer










                New contributor



                Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                First of all, you cannot override PaymentExtensionInterface - it is generated piece of code.



                If you want to define a new field, similar to agreement_ids you should create extension_attributes.xml file in your Company/Module/etc directory with a content like this:



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
                <extension_attributes for="MagentoQuoteApiDataPaymentInterface">
                <attribute code="subscription_id" type="string" />
                </extension_attributes>
                </config>


                Getters and setters for subscribtion_id attribute will be generated by Magento and will be present in PaymentExtensionInterface.



                You can find more info here: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html



                Unfortunately, example in docs is more about shipping than billing step form, but take a look at Magento's checkout-agreements module for some ideas.







                share|improve this answer










                New contributor



                Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share|improve this answer



                share|improve this answer








                edited Jul 4 at 9:49





















                New contributor



                Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                answered Jul 4 at 9:23









                Michał BroniszewskiMichał Broniszewski

                11 bronze badge




                11 bronze badge




                New contributor



                Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




                New contributor




                Michał Broniszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





























                    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%2f280331%2foverride-paymentextensioninterface%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?