TendoPay Lazada API integraiton
You can install the package via composer:
add object in "repoisitories" section of "composer.json" file.
"repositories": [
...
{
"type": "git",
"url": "https://github.com/TendoPayPlugins/tp-lazada-api.git"
}
],
and then run in console:
composer require tendopay/tp-lazada-api
You probably will need github token. See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token for reference.
TP_LAZADA_APP_KEY=
TP_LAZADA_APP_SECRET=
Documentation: https://open.lazada.com/doc/api.htm?spm=a2o9m.11193494.0.0.f05d266bx1FwMC#/permission?groupId=54&path=/wallet/transfer/query
$requestModel = new DirectTransferOpenRequest(
'test001',
'0.01',
'09160000001'
);
$requestModel = new GiftCodeCreateOpenRequest(
'0.01',
1,
'batch001',
1640260000001,
1740260653001
);
$requestModel = new GiftCodeCreateOpenQuery(
'batch001'
);
$requestModel = new DirectTransferOpenQuery(
'test001'
);
$lazadaApi = new TendoPay\LazadaApi();
$response = $lazadaApi->call($requestModel);
composer test