drafdecode / class.truewallet.php

ตัดบัตรทรูมั่นนี่

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

class.truewallet.php

( ต้นฉบับที่ทำเอาไว้ แจกฟรีไม่เคยคิดเงินใครเพราะฉนั้น ไอ้พวกก๊อปๆแล้วไปแก้ของตัวเองแล้วเอาไปเก็บเงินไม่รู้สึกอะไรบ้างเลยหรอ )

https://mobile-api-gateway.truemoney.com/mobile-api-gateway/content-composite/v1/generic/

$wallet = new TrueWallet('YOUR EMAIL','YOUR PASSWORD','email');
OR
$wallet = new TrueWallet('YOUR PHONENUMBER','YOUR PIN','mobile');

Login GetToken

echo $wallet->GetToken();

Response Success

{
	"code": "20000",
	"namespace": "TMN-PRODUCT",
	"titleTh": "",
	"titleEn": "",
	"messageTh": "คุณสามารถเช็ครายการย้อนหลัง\nได้ที่เมนูประวัติการทำรายการ\n[APR-20000]",
	"messageEn": "คุณสามารถเช็ครายการย้อนหลัง\nได้ที่เมนูประวัติการทำรายการ\n[APR-20000]",
	"originalMessage": "",
	"developerMessage": "",
	"data": {
		"addressList": [
	],
	"occupation": "",
	"accessToken": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
	"profileImageStatus": "",
	"tmnId": "",
	"lastnameEn": "",
	"currentBalance": "",
	"thaiId": "",
	"firstnameEn": ,
	"kycVerifyStatus": "",
	"hasPin": "",
	"title": "",
	"profileType": "",
	"forceKyc": "",
	"email": "",
	"birthdate": "",
	"mobileNumber": "",
	"hasPassword": "",
	"fullname": "",
	"imageURL": ""
}

}


Get Profile

$token = json_decode($wallet->GetToken(),true)['data']['accessToken']; 
echo $wallet->Profile($token);

Response Success

{
	"code": "20000",
	"namespace": "TMN-PRODUCT",
	"titleTh": "",
	"titleEn": "",
	"messageTh": "คุณสามารถเช็ครายการย้อนหลัง\nได้ที่เมนูประวัติการทำรายการ\n[APR-20000]",
	"messageEn": "คุณสามารถเช็ครายการย้อนหลัง\nได้ที่เมนูประวัติการทำรายการ\n[APR-20000]",
	"originalMessage": "",
	"developerMessage": "",
	"data": {
		"addressList": [],
		"occupation": "",
		"profileImageStatus": "",
		"tmnId": "",
		"lastnameEn": "",
		"currentBalance": "",
		"thaiId": "",
		"firstnameEn": "",
		"kycVerifyStatus": "",
		"hasPin": "",
		"title": "",
		"profileType": "",
		"forceKyc": ,
		"email": "",
		"birthdate": "",
		"mobileNumber": "",
		"hasPassword": "",
		"fullname": "",
		"imageURL": ""
	}
}

Topup

$token = json_decode($wallet->GetToken(),true)['data']['accessToken']; 
echo $wallet->Topup('เลขบบัตรทรูมั่นนี่',$token);

Response Success

{
	"amount": "",
	"serviceFee": "",
	"cashcardPin": "",
	"createDate": "",
	"sourceFee": "",
	"totalAmount": "",
	"transactionId": "",
	"remainingBalance": ""
}

About

ตัดบัตรทรูมั่นนี่


Languages

Language:PHP 100.0%