Discussions

Ask a Question
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

Where can I hire developers to help me with integration?

URLs for Webhooks

Which URLs are considered to be publicly accessible?

Hi I am getting an error. I tested this using the card numbers in Testing.

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.paymongo.com/v1/payments resulted in a 400 Bad Request response: {"errors":[{"code":"parameter_invalid","detail":"The source.type passed card is invalid.","source":{"pointer":"source.ty (truncated...) in C:\xampp\htdocs\paymongo\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\guzzle\src\Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}() #4 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true) #5 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending() #7 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList() #8 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\promises\src\Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending() #9 C:\xampp\htdocs\paymongo\vendor\guzzlehttp\guzzle\src\Client.php(189): GuzzleHttp\Promise\Promise->wait() #10 C:\xampp\htdocs\paymongo\create_payment.php(100): GuzzleHttp\Client->request('POST', 'https://api.pay...', Array) #11 {main} thrown in C:\xampp\htdocs\paymongo\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

ANSWERED

Payment Method creation before Payment Intent mandatory ?

As per the steps provided in the documentation, Payment Intent needs to be created first and than the Payment Method should be created. Is this sequence mandatory ?

is there an option to decline foreign cards and only use local cards in the PH.

Adding 1% when customers use cards from other countries is tough for my business. I want to keep my prices low, and that extra 1% might either cost me too much money or make me raise prices, which I really don't want to do.

Webhook sudden changes status

I have different webhook sometimes it automatocally disabled/enabled. Right now i just look at it and all of my webhooks are enabled without me changing it

ANSWERED

Payment fees

Hello, paymongo Devs! Is there anyway I can get the fees (foreign fee and Fee)of payment before attaching the payment method and client key to payment intent?

ANSWERED

How to simulate "payment.failed" in webhook api?

I've been configuring the webhook api, however I only managed to call source.chargeable and payment.paid. Is there a way to simulate payment.failed?

ANSWERED

load to gcash

can i transfer load to gcash?