Page 1 of 1

Processing digital goods after payment

Posted: Tue Aug 02, 2016 1:34 am
by artem78
After order has been paid (status changed to completed), for each digital goods in order I need to call some function with product model parameter. How can I do this?

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 1:58 am
by straightlight
Would it be possible to elaborate the problem and to post your OC version?

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 3:45 am
by artem78
Yes, of course.

I`m selling digital goods with serials. I`m using for this Serial Key module 1.4.8 — 1.5.X plugin.

Also I have my own script for licence checking. After customer pay for order I need to make call to it`s API and send each bought serial with product model.

Opencart version: 1.5.6.4

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 4:30 am
by straightlight
artem78 wrote:Yes, of course.

I`m selling digital goods with serials. I`m using for this Serial Key module 1.4.8 — 1.5.X plugin.

Also I have my own script for licence checking. After customer pay for order I need to make call to it`s API and send each bought serial with product model.

Opencart version: 1.5.6.4
Do you have an API documentation you could provide so to see if this API can be integrated into Opencart?

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 4:34 am
by artem78
It`s very simple api call: POST query with serial and model params. I can do it without problem. Only what I need to know is how get serial and model from each product in order after payment?

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 4:39 am
by straightlight
No problem. However, with Opencart v1.5x releases, this would be harder task to accomplish since prior versions to v2.x releases does not use an integrated API method compared to v2.x releases. By simply relying on the confirm and unconfirm method of the order totals, in v2.x releases, your enquiry could be easily accomplished.

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 4:45 am
by artem78
Could you tell me how to do this?

Re: Processing digital goods after payment

Posted: Tue Aug 02, 2016 4:46 am
by straightlight
artem78 wrote:Could you tell me how to do this?
You'd first need to upgrade to the v2.x releases. The latest version was published today: http://forum.opencart.com/viewtopic.php?f=2&t=166011

Re: Processing digital goods after payment

Posted: Sat Aug 27, 2016 11:00 am
by DavidL
Ok, we are using opencart 2.2.0.0 shelled by Joocart within a Joomla latest version.
Our software products are administered by a server based licensing system.
Like the original poster, we would like to get notification of the sale with some product specific metadata like product ID, main version, minor version to our licensing server.

Now that we are on the "right" version...can you provide some directional guidance on how to invoke the transaction push?
Thanx!!!