Discussions

Ask a Question
ANSWERED

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

ANSWERED

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

ANSWERED

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)

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?

Trying to create a source in live server but its always getting 500 error but when i tried in local host it is working

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);
ANSWERED

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, '')

ANSWERED

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

ANSWERED

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

ANSWERED

pay out

How to get my payout

ANSWERED

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.