[ECOMMERCE-519] Commercetools: Handle paymentMethod in create order API Created: 29/Mar/22  Updated: 11/Jan/23

Status: Open
Project: E-commerce
Component/s: connector
Affects Version/s: 1.3.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Jesus Alonso Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: AuthorX improvements
Team: AuthorX

 Description   

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"
            }
        }
    ]
}' 

Generated at Mon Feb 12 01:44:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.