Inhalte aufrufen

Profilbild

Completing orders and capturing payment


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
3 Antworten zu diesem Thema

#1 CompleteCoders

CompleteCoders

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 103 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
  • 3799 Beiträge

Geschrieben: 02 February 2018 - 17:34

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


Marcus Gesing

Smartstore AG


#3 CompleteCoders

CompleteCoders

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 103 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
  • 3799 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).

Marcus Gesing

Smartstore AG