Post by vaidyamanishjoshi » Tue Apr 19, 2022 9:39 pm

IMP*
THIS IS NOT RELATED TO MY OPENCART STORE....... IT IS RELATED TO SELLER API OPTION GIVEN IN opencart.com


In opencart.com extension seller, API option is given. (image attached). I have added a link for that. But unfortunatelly, no server to server call is made when someone buy my extension on opencart.com

I have simply added following code to write response in text file, but even it is also not getting any details. ( i have gone through viewtopic.php?f=110&t=219906&p=823330&h ... pi#p798744 as well as github link too.... But could not find any documentation on it. Basically opencart should create some documentation on it as opencart is getting commission charges when any sell is there... so developer should get more details about it... it is my request ofcourse...)

what I have in my script is as follows :

API Url is : https://www.mysomedomain.com/opencart-sale-webhook.php

code in it is :

Code: Select all

<?php
$filename = "opencart-sell/webhook_data.txt"; // file is there in this folder
foreach($_POST as $key => $value)
{
    file_put_contents($filename, "$key: $value\n", FILE_APPEND);
}
file_put_contents($filename, "----------\n", FILE_APPEND);

include("db.php");
///// rest code to receive $_POST values and add it in mysql database....
?>

But even file_put_contents is also not adding any data in text file even when someone buy my extension on opencart.com with order status - complete...

Where can get documentation on it ?

Attachments

opencart-seller-api.png

opencart api - opencart-seller-api.png (205.31 KiB) Viewed 2186 times


Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Tue Apr 19, 2022 11:07 pm

I already posted in here. What you're providing is still partial info of what you need!

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
Who is online

Users browsing this forum: No registered users and 24 guests