Not getting the order id using payment information API in magento-2In which table payment method information of order saveMagento 2 - Getting order informationThe requested Payment Method is not available When creating an orderHow to return a JSON object with a custom REST API in Magento 2?Create order with magento 2 api using credit cart payment methodMagento 2 Add new field to Magento_User admin formMagento 2 REST API -> PUT example (PHP)Payment with REST APIMagento2 : Getting error while updating the data using APIMagento 2: Payment Method Not Capturing Shipping Address From Payment Page
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
Why do we use polarized capacitors?
Lied on resume at previous job
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Unbreakable Formation vs. Cry of the Carnarium
A poker game description that does not feel gimmicky
Prime joint compound before latex paint?
Finding files for which a command fails
Why Is Death Allowed In the Matrix?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
Why is my log file so massive? 22gb. I am running log backups
Why was the "bread communication" in the arena of Catching Fire left out in the movie?
extract characters between two commas?
Can I find out the caloric content of bread by dehydrating it?
Could Giant Ground Sloths have been a good pack animal for the ancient Mayans?
Does the average primeness of natural numbers tend to zero?
How would photo IDs work for shapeshifters?
How do I create uniquely male characters?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
How to deal with fear of taking dependencies
Symmetry in quantum mechanics
Are white and non-white police officers equally likely to kill black suspects?
How to make payment on the internet without leaving a money trail?
Not getting the order id using payment information API in magento-2
In which table payment method information of order saveMagento 2 - Getting order informationThe requested Payment Method is not available When creating an orderHow to return a JSON object with a custom REST API in Magento 2?Create order with magento 2 api using credit cart payment methodMagento 2 Add new field to Magento_User admin formMagento 2 REST API -> PUT example (PHP)Payment with REST APIMagento2 : Getting error while updating the data using APIMagento 2: Payment Method Not Capturing Shipping Address From Payment Page
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need to create the order id after checkout page using endpoints from Magento-2. As per my code, I am getting the following error.
"message":"Please check the shipping address information. postcode
is a required field."
I am giving the user inputs for the end point below.
"paymentMethod":"method":"cashondelivery","billing_address":"email":"raj@gmail.com","region":"Odisha","region_id":0,"region_code":"Odisha","country_id":"IN","street":["test"],"postcode":"751010","city":"Bhubaneswar","telephone":"7894498320","firstname":"Raj","lastname":"kumar"
As per this input I need to create order and my code is given below.
$quoteUrl ='http://example.com/index.php/rest/V1/carts/mine/payment-information';
$chQuote = curl_init($quoteUrl);
curl_setopt($chQuote, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($chQuote, CURLOPT_POSTFIELDS, $dat);
curl_setopt($chQuote, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token1)));
curl_setopt($chQuote, CURLOPT_RETURNTRANSFER, true);
$quote = json_decode(curl_exec($chQuote));
$array = json_decode(json_encode($quote), True);
echo json_encode($array);exit;
Here my postcode is correct for the order deliver but still I am getting the error as postcode is required. I need to create the order as per this history.
magento2 orders payment-methods rest-api curl
add a comment |
I need to create the order id after checkout page using endpoints from Magento-2. As per my code, I am getting the following error.
"message":"Please check the shipping address information. postcode
is a required field."
I am giving the user inputs for the end point below.
"paymentMethod":"method":"cashondelivery","billing_address":"email":"raj@gmail.com","region":"Odisha","region_id":0,"region_code":"Odisha","country_id":"IN","street":["test"],"postcode":"751010","city":"Bhubaneswar","telephone":"7894498320","firstname":"Raj","lastname":"kumar"
As per this input I need to create order and my code is given below.
$quoteUrl ='http://example.com/index.php/rest/V1/carts/mine/payment-information';
$chQuote = curl_init($quoteUrl);
curl_setopt($chQuote, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($chQuote, CURLOPT_POSTFIELDS, $dat);
curl_setopt($chQuote, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token1)));
curl_setopt($chQuote, CURLOPT_RETURNTRANSFER, true);
$quote = json_decode(curl_exec($chQuote));
$array = json_decode(json_encode($quote), True);
echo json_encode($array);exit;
Here my postcode is correct for the order deliver but still I am getting the error as postcode is required. I need to create the order as per this history.
magento2 orders payment-methods rest-api curl
add a comment |
I need to create the order id after checkout page using endpoints from Magento-2. As per my code, I am getting the following error.
"message":"Please check the shipping address information. postcode
is a required field."
I am giving the user inputs for the end point below.
"paymentMethod":"method":"cashondelivery","billing_address":"email":"raj@gmail.com","region":"Odisha","region_id":0,"region_code":"Odisha","country_id":"IN","street":["test"],"postcode":"751010","city":"Bhubaneswar","telephone":"7894498320","firstname":"Raj","lastname":"kumar"
As per this input I need to create order and my code is given below.
$quoteUrl ='http://example.com/index.php/rest/V1/carts/mine/payment-information';
$chQuote = curl_init($quoteUrl);
curl_setopt($chQuote, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($chQuote, CURLOPT_POSTFIELDS, $dat);
curl_setopt($chQuote, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token1)));
curl_setopt($chQuote, CURLOPT_RETURNTRANSFER, true);
$quote = json_decode(curl_exec($chQuote));
$array = json_decode(json_encode($quote), True);
echo json_encode($array);exit;
Here my postcode is correct for the order deliver but still I am getting the error as postcode is required. I need to create the order as per this history.
magento2 orders payment-methods rest-api curl
I need to create the order id after checkout page using endpoints from Magento-2. As per my code, I am getting the following error.
"message":"Please check the shipping address information. postcode
is a required field."
I am giving the user inputs for the end point below.
"paymentMethod":"method":"cashondelivery","billing_address":"email":"raj@gmail.com","region":"Odisha","region_id":0,"region_code":"Odisha","country_id":"IN","street":["test"],"postcode":"751010","city":"Bhubaneswar","telephone":"7894498320","firstname":"Raj","lastname":"kumar"
As per this input I need to create order and my code is given below.
$quoteUrl ='http://example.com/index.php/rest/V1/carts/mine/payment-information';
$chQuote = curl_init($quoteUrl);
curl_setopt($chQuote, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($chQuote, CURLOPT_POSTFIELDS, $dat);
curl_setopt($chQuote, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token1)));
curl_setopt($chQuote, CURLOPT_RETURNTRANSFER, true);
$quote = json_decode(curl_exec($chQuote));
$array = json_decode(json_encode($quote), True);
echo json_encode($array);exit;
Here my postcode is correct for the order deliver but still I am getting the error as postcode is required. I need to create the order as per this history.
magento2 orders payment-methods rest-api curl
magento2 orders payment-methods rest-api curl
edited Apr 5 at 11:00
ARUNPRABAKARAN M
403113
403113
asked Apr 5 at 10:32
satyasatya
1587
1587
add a comment |
add a comment |
0
active
oldest
votes
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%2f268926%2fnot-getting-the-order-id-using-payment-information-api-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f268926%2fnot-getting-the-order-id-using-payment-information-api-in-magento-2%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