Inhalte aufrufen

Profilbild

Completing orders and capturing payment


3 Antworten zu diesem Thema

#1 CompleteCoders

CompleteCoders

    Advanced Member

  • Members
  • 69 Beiträge

Geschrieben: 02 February 2018 - 04:17

We have to update orders as complete and capture payment when our fulfillment system completes.  We call the function "CompleteOrder" in smartstore and it calls this code
 
if (CanMarkOrderAsPaid(order))
{
    MarkOrderAsPaid(order);
}
 
Now we are using PayPal as our CC processor and when we do this process it doesn't capture the payment, just marks it as paid.  Is there a way we should be doing this so the order is marked as complete and the payment is captured?


#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3308 Beiträge

Geschrieben: 02 February 2018 - 17:34

Do you use the SmartStore PayPal plugin and what is the PayPal method (provider)?


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 CompleteCoders

CompleteCoders

    Advanced Member

  • Members
  • 69 Beiträge

Geschrieben: 03 February 2018 - 04:49

We are using the SmartStore PayPalDirect plugin.

 

Capture works fine when I hit the capture button from the UI.  Just not when we call the function for CompleteOrder.



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3308 Beiträge

Geschrieben: 05 February 2018 - 17:20

CompleteOrder does not capture the payment at the payment provider. There is an issue to add an option for automatic payment capturing. At the moment you only can set the transaction mode to "Immediately debit" in the PayPal configuration but that captures the payment early (when the order is placed).

Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten