Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-519

Commercetools: Handle paymentMethod in create order API

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 1.3.2
    • connector
    • None

      The createOrder API is ignoring the paymentMethod information.

      Expected result

      createOrder set the payment information before creating the order.

      Development notes

      curl --location -g --request POST '{{host}}/{{project-key}}/carts/{{cart-id}}' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer {{ctp_access_token}}' \
      --data-raw '{
          "version": {{cart-version}},
          "actions": [
              {
                  "action": "addPayment",
                  "payment": {
                      "id": "{{payment-id}}",
                      "typeId": "payment"
                  }
              }
          ]
      }' 

        Acceptance criteria

              Unassigned Unassigned
              jalonso Jesus Alonso
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Task DoD