Open Payment Fragment For Specific Order

I would like to know if it is possible to start the payment fragment/activity for an opened order. What I want to accomplish is that once the transaction is completed, the specific order to be marked as completed as well.

I noticed that, there is a method for Payment object called

payment.setOrderId(String string);

However, passing the String parameter with an opened Order ID did not complete the specific order.

Hi there,

Setting orderId in payment.setOrderId associates the transaction with that specific order. Meaning that if you do a GET on that order id the order object will also contain an array of “transactions” with one or more (if this was a multi-tender payment) transactions that were part of that checkout session. In addition the orders statuses.transactionStatusSummary will be set to “COMPLETED”.

If you need to update the order you need to call IPoyntOrderService.updateOrder after payment is competed.

@dennis Thank you, I’ll give it a try. :smile: