Comments (3)
ini salah 1 contoh nya koding mutasi saya
from gopay-api.
`<?php
error_reporting(0);
header('Content-Type: application/json');
set_time_limit(0);
$urutan=$_GET['urutan'];
if($urutan=="GOPAY1"){
require('../src/GojekPay.php');
}
if($urutan=="GOPAY2"){
require('../src/GojekPay2.php');
}
if($urutan=="GOPAY3"){
require('../src/GojekPay3.php');
}
if($urutan=="GOPAY4"){
require('../src/GojekPay4.php');
}
if($urutan=="GOPAY5"){
require('../src/GojekPay5.php');
}
if($urutan=="GOPAY6"){
require('../src/GojekPay6.php');
}
if($urutan=="GOPAY7"){
require('../src/GojekPay7.php');
}
if($urutan=="GOPAY8"){
require('../src/GojekPay8.php');
}
if($urutan=="GOPAY9"){
require('../src/GojekPay9.php');
}
if($urutan=="GOPAY10"){
require('../src/GojekPay10.php');
}
if($urutan=="GOPAY11"){
require('../src/GojekPay11.php');
}
if($urutan=="GOPAY12"){
require('../src/GojekPay12.php');
}
if($urutan=="GOPAY13"){
require('../src/GojekPay13.php');
}
if($urutan=="GOPAY14"){
require('../src/GojekPay14.php');
}
if($urutan=="GOPAY15"){
require('../src/GojekPay15.php');
}
include '../../koneksi.php';
use Namdevel\GojekPay;
$nohp=$_GET['nohp'];
$q1x = mysqli_query($koneksi,"select * from gojek where gojek='$nohp' order by id DESC limit 1 ");
$r1x=mysqli_fetch_array($q1x);
$token = $r1x['app'];
if($token!=""){
$app = new GojekPay($token);
$data=$app->getTransactionHistory();
/**
@ step 2
return @type json contain <access_token>
*/
$result222a = json_decode($data,true);
$arr = array();
$arr["data"] = array();
for($x=0;$x<20;$x++){
$transactionid=$result222a["data"]["success"][$x]["transaction_ref"];
$description=$result222a["data"]["success"][$x]["description"];
$description=str_replace("'", " ", $description);
$value=$result222a["data"]["success"][$x]["amount"]["value"];
$jenis=$result222a["data"]["success"][$x]["type"];
$data = array(
'transactionid' => $transactionid,
'description' => $description,
'value' => $value,
'jenis' => $jenis,
);
array_push($arr["data"], $data);
}
echo json_encode($arr);
}
?>`
from gopay-api.
device ID harus unique tiuap nomor HP, jangan sering rubah2 , resikonya kena block
dan coba cara ngoding nya lebih terstruktur lagi
from gopay-api.
Related Issues (20)
- login attempts multiple phone numbers HOT 4
- ClientSecret HOT 2
- send otp failed HOT 4
- help me HOT 2
- 2FA code require at the time send request otp-token & otp-code HOT 1
- tuluung bang HOT 3
- LOgout HOT 1
- k HOT 1
- LOGIN HOT 1
- LOGIN HOT 2
- login #ask HOT 1
- 2fa required in otp validation HOT 13
- return blank HOT 1
- Kok gagal terus ya kak HOT 1
- gojek update causing authorization declined
- tulisan successful tapi ngak tertransfer HOT 2
- getTransactionHistory message": "missing auth header
- Endpoint API HOT 2
- transferGopay error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopay-api.