Categories
CMS Magento Mastering Development

How to pass the card details for the Magento API [POST]: V1/carts/mine/payment-information for the payment method stripe_payments_checkout_card

I have an iOS native app which communicates through Magento Rest APIs with my Magento Store, I would like to know how to pass the card details (Token, CVV, Exp Year, Exp Month, Last 4) in JSON format for the payment method "method":"stripe_payments_checkout_card" in the Magento API: [POST] V1/carts/mine/payment-information Note: I use the Stripe Official […]

Categories
CMS Magento Mastering Development

No such entity cartId when send POST on /rest/default/V1/carts/mine/payment-information

According to documentation – https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html I’m trying to make call on /rest/default/V1/carts/mine/payment-information with body: { "paymentMethod": { "method": "stripe_payments" }, "billing_address": { "email": "jdoe@example.com", "region": "New York", "region_id": 43, "region_code": "NY", "country_id": "US", "street": [ "123 Oak Ave" ], "postcode": "10577", "city": "Purchase", "telephone": "512-555-1111", "firstname": "Jane", "lastname": "Doe" } } and getting error: { […]

Categories
CMS Magento Mastering Development

How to create company programmatically magento 2 b2b?

I want to create a company programmatically from a standalone script. Can someone please help me out with this. how can I create it. Here is the code I am using to create company. $companyRepo = $obj->create(‘Magento\Company\Api\CompanyRepositoryInterface’); $companyObj = $obj->create(‘\Magento\Company\Api\Data\CompanyInterface’); $dataObj = $obj->create(‘\Magento\Framework\Api\DataObjectHelper’); $data = [ ‘company_name’ => [ ‘Test Company’ ], ‘company_email’ => ‘testcompany@yopmail.com’, […]

Categories
CMS Magento Mastering Development

Error when trying to add an order via the API

The url for shipping is: V1/guest-carts//payment-information https://store.upc.tax/rest/default/V1/guest-carts/5Shn4DiClYehFeJpq0lzwGy78O4e5I7h/payment-information I try to add a purchase order with a guest cart, it throws the following error: { "message": "\"%fieldName\" is required. Enter and try again.", "parameters": { "fieldName": "email" } } The json that I send is composed as follows: { "paymentMethod": { "method": "banktransfer" }, "billing_address": { […]

Categories
CMS Magento Mastering Development

How to set data for my extension attribute Magento 2.3

I can’t set the value for my extension attribute , how to set the value for extension attribute using json array swagger. And i can’t show the data in the order grid. The below attribute and value can’t set. My attribute : customer_feedback Value : Hello My Module that created for extension attribute Sm\OrderFeedback\etc\di.xml <?xml […]