V
V
Vlad Karpov2020-01-31 05:03:42
WooCommerce
Vlad Karpov, 2020-01-31 05:03:42

How to transfer to a partner service (UDS) whether the payment has passed?

There is such a Uds service, and there is a store on WooCommerce, the service works as follows: you drive in your six-digit number in the WooCommerce cart, json arrives from the uds server with your data (name, bonus points, cashback percentage for the purchase). After entering the desired amount to write off bonuses, the total amount changes, and in the user's personal account on (uds) bonuses are burned. And here's the next question))
How to get information from WooCommerce to transfer to UDS for accruing cashback or returning bonuses, depending on whether the payment went through or not? If I’m not clear enough, then I’ll clarify how to get the id of the future order in WooCommerce or some information so that it can be processed and sent a response to uds

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-01-31
@djokerik

no way. all bonuses and the like shnyaga are used immediately, before not only the payment has passed, but even the payment has not yet begun.
but if the payment did not go through, then bonuses / other shnyaga are returned back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question