This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function forward(Request $request) | |
{ | |
$waniapptoken = $request->get('waniapptoken'); | |
if (!$waniapptoken) { | |
abort(422, 'No Token received'); | |
} | |
list($providerId, $waniapptokenCipher) = explode('|', $waniapptoken); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function start(Request $request) | |
{ | |
$request->validate([ | |
'phone' => 'required', | |
'password' => 'required', | |
'ap_mac_id' => 'required', | |
'device_mac_id' => 'required' | |
]); | |
$user = User::query()->where('phone', '9003300303')->first(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:charcode/ascii.dart'; | |
class PaymentTerminalService { | |
static var ascii = AsciiCodec(); | |
String ip = '127.0.0.1'; | |
int port = 4567; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use Illuminate\Support\Facades\Log; | |
use Twilio\Rest\Client; | |
class SmsService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dio/dio.dart'; | |
Future<dynamic> dioPostFormData( | |
String url, { | |
Map<String, String> headers, | |
Map<String, dynamic> body, | |
String method = 'POST', | |
Map<String, Uint8List> files, | |
}) async { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JsonSerializable(explicitToJson: true) | |
class Outlet { | |
int id; | |
String name; | |
String code; | |
String address; | |
@JsonKey(name: 'mobile_logo') | |
String logo; | |
@JsonKey(name: 'company_id') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DetailViewController.swift | |
// SDKSampleAppSwift | |
// | |
// Created by Muhammad Syafiq bin Mastor on 07/03/2019. | |
// Copyright © 2019 iPay88. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Flutter | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate, PaymentResultDelegate,WKNavigationDelegate { | |
var flutterResult: FlutterResult? | |
override func application( | |
_ application: UIApplication, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
Socket? socket; | |
void main() { | |
Socket.connect("localhost", 4567).then((Socket sock) { | |
socket = sock; | |
if (socket == null) { | |
throw Exception("Invalid Socket"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc -I/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include bcrypt_port.c bcrypt.o blowfish.o -L/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/lib -lpthread -o ../priv/bcrypt | |
bcrypt_port.c:105:14: warning: 'erl_format' is deprecated [-Wdeprecated-declarations] | |
result = erl_format("{~i, ~w, ~s}", cmd, pid, res); | |
^ | |
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/erl_interface.h:407:32: note: 'erl_format' has been explicitly marked deprecated | |
here | |
ETERM *erl_format(char*, ... ) EI_DEPRECATED_ATTR; | |
^ | |
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/ei.h:64:43: note: expanded from macro 'EI_DEPRECATED_ATTR' | |
#define EI_DEPRECATED_ATTR __attribute__((EI_DEPRECATED_ATTR_NAME)) |
NewerOlder