Comments (3)
The []
are just placeholders, don't include them.
Use: paymentRequestStatus('payment_id_received_from_top')
from instamojo-php.
@rebootcode Can you share your code that is resulting in this error? Note that $id
should be a string not an array.
from instamojo-php.
This is what, I am exactly doing :-
$app->get('instamojo/payment', function() {
$api = new Instamojo\Instamojo('My_API_Key', 'My_Auth_Token');
try {
$response = $api->paymentRequestCreate(array(
"purpose" => "FIFA 16",
"amount" => "3499",
"send_email" => true,
"email" => "[email protected]",
"redirect_url" => "http://www.example.local/instamojo/payment/status"
));
print_r($response);
}
catch (Exception $e) {
print('Error: ' . $e->getMessage());
}
});
and to get the status :-
$app->get('instamojo/payment/status', function() {
$api = new Instamojo\Instamojo('My_API_Key', 'My_Auth_Token');
try {
$response = $api->paymentRequestStatus(['payment_id_received_from_top']);
print_r($response);
}
catch (Exception $e) {
print('Error: ' . $e->getMessage());
}
});
from second route "instamojo/payment/status" , I am getting error
Array to string converstion
from instamojo-php.
Related Issues (20)
- The @filepath based file upload has been deprecated in PHP >= 5.5
- 'X-Frame-Options' to 'SAMEORIGIN' HOT 1
- Composer support HOT 2
- Rename the class file name HOT 3
- Instamojo Library for GoLang HOT 1
- How to validate Private API, Token and Salt HOT 4
- Laravel 7 Support Please
- How to send shipping details to instamojo ?
- Bug: Class 'Instamojo\Exception\InstamojoException' not found HOT 2
- 404 Not Found
- object(Instamojo\Instamojo)#3 (0) { }
- http_build_query is buggy in php 5.3.1
- Issue with exception handling
- Required parameter $params follows optional parameter $type in file /vendor/instamojo/instamojo-php/src/Instamojo.php on line 193 HOT 2
- getGatewayOrder error = no Route matched with those values
- The magic method Instamojo\Instamojo::__wakeup() must have public visibility HOT 2
- PHP 8 issues
- Call to private Instamojo\Instamojo::__construct() from scope App\Controllers\Donate HOT 1
- Raise an exception for cURL error.
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 instamojo-php.