Skip to content

Resolve #86 Checkout Process Resources#88

Merged
steve-r-west merged 1 commit intomainfrom
resolve_86_checkout_process_resources
Apr 8, 2022
Merged

Resolve #86 Checkout Process Resources#88
steve-r-west merged 1 commit intomainfrom
resolve_86_checkout_process_resources

Conversation

@jbrockmeyer
Copy link
Copy Markdown
Contributor

@jbrockmeyer jbrockmeyer commented Apr 7, 2022

Probably needs some fixing up in the names.


Commands:

  1. Payment Gateways:
  • get payment-gateways
  • update payment-gateway-manual enabled true
  1. Get a product (or can use PCM)
  • get v2-products
    -- note down the {sku}
  1. Cart:
  • create carts name my-epcc-cart id test-id
    -- note the {cart id}
  • create cart-item cart-items sku {sku} quantity 1
  1. checkout
  • create cart-checkout {cart id} customer.email "test@test.com" customer.name "TestF TestL" billing_address.first_name "TestF" billing_address.last_name "TestL" billing_address.line_1 "line 1" billing_address.postcode "postcode" billing_address.county BC billing_address.country CA shipping_address.first_name "TestF" shipping_address.last_name "TestL" shipping_address.line_1 "line 1" shipping_address.postcode "postcode" shipping_address.county BC shipping_address.country CA
    -- note down the {order id}
  1. Authorize the order
  • create order-transactions {order id} gateway manual method authorize
    -- note the {transaction id}
  1. Capture the order
  • create order-transaction-capture {order id} {transaction id} gateway manual method capture
  1. Fulfil the order
  • update orders {order id} shipping fulfilled
  1. Refund the order
  • create order-transaction-refund {order id} {transaction id} amount 1000

@jbrockmeyer jbrockmeyer force-pushed the resolve_86_checkout_process_resources branch from 6b7eb5d to e0e966b Compare April 7, 2022 23:06
@steve-r-west steve-r-west merged commit 0ccdad1 into main Apr 8, 2022
@steve-r-west steve-r-west deleted the resolve_86_checkout_process_resources branch April 8, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants