Discussions

Ask a Question

Airtable

Hi guys,

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

Idempotency Tokens

Is this planned or do you have any other workarounds on approaching this with PayMongo API?

next_action is null on test mode

Creating a Payment Intent:
When using the live keys, next_action is present and has a redirect object with return_url and url properties. When using the test keys, next_action is null. How can I test the redirects of users when using test keys?

ANSWERED

Can the webhook's URL be a local endpoint?

Can I use my local endpoint when registering a webhook? like can I use https://localhost:8000?

Da wae

Help me find da wae

ANSWERED

Separate integration for eWallet, Credit and debit cards?

Do we need separate integrations for eWallet, Credit and debit cards or it will be in a single go. I mean user have to choose an option that how to pay but settings/configuration would be in one go.

Does Paymongo accepts AMEX credit cards?

please response

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)

ANSWERED