Not able to place the order using paypal in magento 2 rest

前端 未结 3 1155
臣服心动
臣服心动 2020-12-21 01:22

I am developing an e-commerce mobiloe application using magento 2 rest apis only.This is the flow for making the REST API calls for order placement.

3条回答
  •  北海茫月
    2020-12-21 02:04

    Paypal Express payment method doesn't support online capturing. There is no way to get a full order creation flow like on Checkout via Magento API interface. It is impossible to change the order state and process payments. As a workaround try the following:

    1. Create a custom payment method
    2. Enable for REST API only(Not on website checkout page)
    3. While making payment using rest api use this method (after successful payment using you android/ios SDK)
    4. After placing the order make send transaction id(PAY-xxxxx) return by paypal sdk payment to save trasaction.(tell your server side tio implement this call).

    I am writting a complete atrticle regarding this step by step. I will let you know when it is done.

提交回复
热议问题