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

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 […]

Categories
Development JSON

PHP Script to extract only bundle products from a json file and put them to another file

I am new to PHP and I am trying to get specific data from a json file. Here is the file: { “24-WG085”: { “sku”: “24-WG085”, “product_type”: “simple”, “name”: “Sprite Yoga Strap 6 foot”, “price”: 2.25 }, “24-WG085-dynamic”: { “sku”: “24-WG085-dynamic”, “product_type”: “simple”, “name”: “Sprite Yoga Strap Dynamic”, “price”: 10.45 }, “24-WG086”: { “sku”: “24-WG086”, […]