Post by artem78 » Tue Aug 02, 2016 1:34 am

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?

Newbie

Posts

Joined
Tue Aug 02, 2016 1:29 am

Post by straightlight » Tue Aug 02, 2016 1:58 am

Would it be possible to elaborate the problem and to post your OC version?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by artem78 » Tue Aug 02, 2016 3:45 am

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

Newbie

Posts

Joined
Tue Aug 02, 2016 1:29 am

Post by straightlight » Tue Aug 02, 2016 4:30 am

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by artem78 » Tue Aug 02, 2016 4:34 am

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?

Newbie

Posts

Joined
Tue Aug 02, 2016 1:29 am

Post by straightlight » Tue Aug 02, 2016 4:39 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by artem78 » Tue Aug 02, 2016 4:45 am

Could you tell me how to do this?

Newbie

Posts

Joined
Tue Aug 02, 2016 1:29 am

Post by straightlight » Tue Aug 02, 2016 4:46 am

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

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by DavidL » Sat Aug 27, 2016 11:00 am

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!!!

Newbie

Posts

Joined
Sun Dec 07, 2014 5:06 am
Who is online

Users browsing this forum: No registered users and 10 guests