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;
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
add a comment |
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
add a comment |
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
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
magento2 magento2.2 magento2.3
asked Jul 1 at 13:54
MadzQuestioningMadzQuestioning
2639 bronze badges
2639 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
New contributor
add a comment |
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
);
);
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%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
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
edited Jul 4 at 9:49
New contributor
answered Jul 4 at 9:23
Michał BroniszewskiMichał Broniszewski
11 bronze badge
11 bronze badge
New contributor
New contributor
add a comment |
add a comment |
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.
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%2fmagento.stackexchange.com%2fquestions%2f280331%2foverride-paymentextensioninterface%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