instamojo / instamojo-php Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rishimukherjee/instamojo-php-api-wrapper
A PHP wrapper for the instamojo API.
License: MIT License
This project forked from rishimukherjee/instamojo-php-api-wrapper
A PHP wrapper for the instamojo API.
License: MIT License
It's not working on the linux server. Case sensitivity issue.
Rename the file instamojo-php/src/instamojo.php to instamojo-php/src/Instamojo.php
Hi,
i have a form that sends (Post) data to instamojo. The data a form sends is as follows
But what i have to do to post the following details :
A Working Test form is available at https://www.tradeniti.in/insta/index.php
Kindly help.
Thanks.
Hello
Is there any method where we can validate credential
Private API Key
Private Auth Token
Private Salt
Using PHP API ?
Problem Definition:
composer
for installing dependencies.Solution:
$api = Instamojo\Instamojo::init('app',[
"client_id" => 'XXX',
"client_secret" => 'XXX',
],true);
why is $api is empty, can someone help
i have removed the client_id and client_secret for security pupose
i am trying to integrate in laravel 9 ,php version 8.1.0.
i have installed the wrapper through composer require instamojo/instamojo-php
then in controller
public function pay(Request $request){
$api = new \Instamojo\Instamojo(
config('services.instamojo.api_key'),
config('services.instamojo.auth_token'),
config('services.instamojo.url')
);
try {
$response = $api->paymentRequestCreate(array(
"purpose" => "FIFA 16",
"amount" => $request->amount,
"buyer_name" => "$request->name",
"send_email" => true,
"email" => "$request->email",
"phone" => "$request->mobile_number",
"redirect_url" => "http://127.0.0.1:8000/pay-success"
));
header('Location: ' . $response['longurl']);
exit();
}catch (Exception $e) {
print('Error: ' . $e->getMessage());
}
}
after the running the project getting error : The magic method Instamojo\Instamojo::__wakeup() must have public visibility
Lots of people face cURL connection error (60)
and are not able to figure it out why the API is not working, we need to raise this explicitly.
Hello, I am using it with Laravel and while running the code. Create payment request is successful but when i check the payment status, it returns
Array to String Conversion
Debugging more , I found it is line no. 298 in instamojo.php
Could you please check, what am i doing wrong.
For remote checkout, the browser is displaying error
refused to display 'https://www.instamojo.com/.../?intent=buy&checkout=remote' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
There is an incorrect parameter upload_file in instamojo.php on line 143, https://github.com/Instamojo/instamojo-php/blob/master/instamojo.php
if($link['file_upload']) {
$file_upload_json = $this->uploadFile($link['upload_file']);
Both above lines should have the same value 'file_upload'
I am trying to call the createPaymentRequest
function with an amount less than 9 INR, instead of giving a proper error message, it's giving an arbitrary error message "Invalid request" Kindly fix it. getting the same issue with other errors like invalid phone, invalid email, etc.
On the below line of code, we are getting the correct error message in $response_obj
variable but in the exception which we are getting in the try/catch block, it's a wrong error message.
instamojo-php/src/Utilities.php
Line 97 in 5856461
The Library is not working with latest PHP. It returns multiple errors due to the compatibilty.
First I faced init function arguments with default param retunred errror. Then wakeup function public error. If we make this code compatible with PHP 8 this all errors will go i guess
Hello
I am receiving the error in getGatewayOrder(orderid) method.
"Error: no Route matched with those values"
here is my code
try {
$response = $api->getGatewayOrder($order_id);
print_r(json_encode($response));
}
catch (Exception $e) {
print('Error: ' . $e->getMessage());
}
PHP Version: 8.0.9
is there any support for php 8.0?
As per the php 8.0 specification, the required parameter should come first and optional parameters should follow required parameters.
Can you guys please fix this?
I am looking for Instamojo Library for Golang.
The http_build_query
used to generate URL-encoded query string in instamojo/instamojo-php/src/instamojo.php
does not use default separator ('&').
$options[CURLOPT_POSTFIELDS] = http_build_query($data);
This causes problem while sending post data request.
Replacing the above line with the following solves the problem temporarily
$options[CURLOPT_POSTFIELDS] = http_build_query($data, "", "&");
Reference
Multiple SDK which supports PHP 5.3.0 or later, pass the other 2 parameters as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.