Coder Social home page Coder Social logo

Comments (3)

cvkjm avatar cvkjm commented on June 18, 2024

ini salah 1 contoh nya koding mutasi saya

from gopay-api.

cvkjm avatar cvkjm commented on June 18, 2024

`<?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.

namdevel avatar namdevel commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.