Discussions
I am trying to create a source in my website but it always says that Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.paymongo.com/v1/sources` resulted in a `429 Too Many Requests` response:
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.paymongo.com/v1/sources` resulted in a `429 Too Many Requests` response: {"errors":[{"code":"too_many_requests","detail":"Too many requests have been sent within a time period. Please try again (truncated...) in /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create() #1 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #2 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run() #5 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #7 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #8 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #9 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Promise\Promise->wait() #10 /home/u327432321/domains/mrcresort.com/public_html/try.php(8): GuzzleHttp\Client->request() #11 {main} thrown in /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
Posted by [email protected] 3 days ago
GuzzleHttp\Exception\ClientException - Response 429
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.paymongo.com/v1/sources resulted in a 429 Too Many Requests response: {"errors":[{"code":"too_many_requests","detail":"Too many requests have been sent within a time period. Please try again (truncated...) in /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create() #1 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp{closure}() #2 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}() #4 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run() #5 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #7 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #8 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #9 /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Promise\Promise->wait() #10 /home/u327432321/domains/mrcresort.com/public_html/try.php(8): GuzzleHttp\Client->request() #11 {main} thrown in /home/u327432321/domains/mrcresort.com/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
Posted by [email protected] 3 days ago
how can I accept g cash payments?
I created a source for gcash auth, then use the id from there to create payments, but how can I received those payments?,
e.g (customer -> order -> checkout -> gcash auth -> create payment -> vendor received payment)
Posted by [email protected] 4 days ago
Server and Client encryption
Paymongo is only server side payment? I need to encrypt the information of the card from client side to send to the server side and from the server create the payment with pay mongo?
Thanks for your answer.
Warm regards
Posted by Jonathan Reyes 5 days ago
Trying to create a source in live server but its always getting 500 error but when i tried in local host it is working
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://api.paymongo.com/v1/sources', [
'body' => '{"data":{"attributes":{"amount":10000,"redirect":{"success":"http://localhost:3000/success.php","failed":"http://localhost:3000/failed.php"},"type":"gcash","currency":"PHP"}}}',
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Basic ************',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);
$redirect = $data['data']['attributes']['redirect']['checkout_url'];
header('Refresh: 3;URL='. $redirect);
Posted by Joshua Marcius Rodillas 9 days ago
Access Error Details passed
How do I access the error detail, like how i can access checkout url with JSON.stringify(response.data.data.attributes.redirect.checkout_url).replace(/['"]+/g, '')
Posted by [email protected] 21 days ago
Is there any maximum limit for order price in paymongo
When we are trying to create a source of amount 13060.00. it is giving exception
"The value for amount cannot be greater than 10000000".
Could you please explain what is the limit?
Posted by Anandu Sidharthan about 2 months ago
Automatic accept payment using paymaya
Hello! Is this posible to accept an automatic using paymaya on my mm panel? and can you transfer my fund using paymaya to perfect money??
Posted by jameson cerdan about 2 months ago
pay out
How to get my payout
Posted by Mary Ann manorina 2 months ago
Testing GCash & GrabPay Failure Scenario
Hi Paymongo Team, we would like to update the Order status when E-Wallet payment with GCash / GrabPay fails. While verifying this failure case in the Test mode, when I click "Fail Test Payment" in the E-Wallet page, the browser is getting refirected to the "failure" URL as passed in the API payload as expected. However there seems to be no webhook call to indicate the Payment has failed, though we have registered "payment.fail" webhook.
Also we would like to confirm the status using the GET source API before updating in our system. Seems like the status of the Source created in the above case for the E-Wallet seems to be in "pending" itself.
Can you please help clarify both the above points. Thanks.
Posted by Varadarajan Lakshmipuram 2 months ago