Closed gadimbaylisahil closed 1 year ago
Following is result of call with Neeme.
Creating an invoice calls capture with:
The rest of the magic will happen inside the BP API. Crefo wants to know the payment period / due date, but since Shopware doesn't keep track of that, we'll store the value in our dashboard for the first version.
Problems
When creating an invoice payment, the state stays in
pending
. This invoices has to be captured manually by the merchants.Some merchants wants their invoices to be captured when state of the shipping changes to shipped(or whatever is the term in shopware 6).
Solution
Configuration option should be named:
automatically_capture_transaction_when_order_is_shipped
Configuration option should have informative text:
When order's shipping state changes to shipped, plugin will automatically capture the order's transaction in API. You can also capture transactions manually, by turning this flag off.
Unclear parts
What happens when order is shipped partially? Do we calculate shipped products' amounts and send capture request with that amount?
How to capture?
#show
request now should contain captured amount.