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

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
Development

How to update array element using setState in React?

If I had an array structure similar to this: person[{id: 0, firstname: ‘john’, surname: ‘smith’}, {id: 1, firstname: ‘jane’, surname: ‘smith’}] Then using an event handler to catch some change and using setState, how could I update the array element similar to this: handleChangeEvent(newSurname, id){ this.setState({ person[id].surname : newSurname}) }

Categories
Development

React dropdown / select not updating state

Updating state works if the state i am trying to update is outside the users array. But since i am having multiple users i need the state to be inside the objects and update anyway I keep getting the error TypeError: Cannot read property ‘name’ of undefined I’ve thought of setting state inside of a […]

Categories
Development jQuery

Implementing a jQuery Query Builder on top of a Kendo Grid

I am looking to implement the jQuery Query Builder on top of a Kendo Grid. I want the Query Builder to be able to filter the Kendo Grid. Both the Query Builder and the Grid are on the page…now I just want to link the Query Builder to the Grid, so I can filter through […]

Categories
Development jQuery

Implementing a jQuery Query Builder on top of a Kendo Grid

I am looking to implement the jQuery Query Builder on top of a Kendo Grid. I want the Query Builder to be able to filter the Kendo Grid. Both the Query Builder and the Grid are on the page…now I just want to link the Query Builder to the Grid, so I can filter through […]