Discussions
Paid Memberships Pro Integration in Wodpress
Good day, is there a way to integrate Paymongo with membership plugins like PaidMembership Pro?
Posted by Miguel Ortega 3 days ago
Possible integration
Is it possible to use paymongo for applications backed by Firebase?
Posted by null 27 days ago
Webhook keeps on getting disabled
Hello guys,
I am not sure how I can fix these errors. My webhook gets disabled everytime there is a successful purchase on my website. This is paymongo's email to me
1. Your endpoint is blocking the request. Your endpoint should allow POST requests on SSL port 443
2. Your endpoint is not public. Your endpoint should be publicly visible so PayMongo can send events.
I am not sure how to fix it. My webhost (namecheap) can't help me unless they can replicate the error. I tried disabling the plugins except for (Events Calendar, Event Tickets, Woocommerce). I even set my theme to the default 2024 but still I get the error.
Anyone that know how to fix this?
Thanks,
Posted by null about 1 month ago
Redirect Customer after paying
Hi, Would it be possible to direct my client to my (New link) booking Page after paying me?
Posted by mics about 2 months ago
CORS error
Hi, our paymongo integration was working fine but now we're suddenly getting this CORS error - we didn't make any code changes. Is there anything that was changed to Paymongo API on your side? What can we do to resolve this?
Access to fetch at '<https://api.paymongo.com/v1/merchants/capabilities/payment_methods'> from origin '<http://127.0.0.1:5173'> has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Thanks!
Posted by Leo about 2 months ago
Need help with my webhook signature on laravel/PHP
public function test(Request $request){
```
$signingSecret = 'sk_test_UVzt5mdhyRgoZxK1C7YimXaV';
$header_signature = $request->header('Paymongo_Signature');
$header_signature_res =preg_split("/,/",$header_signature);
$header_time_no_equal = preg_split("/=/",$header_signature_res[0]);
//contains the time ex: 1716800978
$header_time_no_equal_res = $header_time_no_equal[1];
$header_string_no_equal = preg_split("/=/",$header_signature_res[1]);
//contains the test mode signature without the 'te=' ex: 1447a89e7ecebeda32sffs62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
$header_string_no_equal_res = $header_string_no_equal[1];
$payload= $request->getContent();
//concatinated the time and $request->getContent() ex:1716800978{json response data} and the second value is my secret key ex: sk_test_UVzt5mdhyRgoZxK1C7YimXaV
$computedSignature = hash_hmac('sha256',$header_time_no_equal_res.$payload, $signingSecret);
$signature = hash_equals($header_string_no_equal_res.$header_string_no_equal_res,$computedSignature);
if($signature == 1 || $signature == true){
WebhookCall::insert([
'payload' =>'valid',
]);
}else{
WebhookCall::insert([
'payload' =>'Invalid'
]);
}
}
```
May I ask you guys how to construc a signature validator in paymongo?
when I try running this program, the has_hmac() return value always return 0 instead of true. any help from you guys. Thanks in advance
Posted by null 2 months ago
Securing a Webhook.
I did not understand this part of instruction. Could you elaborate further and provide an example of how the data should be look?
<br />
2. Concatenate the following to create your own signature:
a. The timestamp as a string, e.g. 1496734173
b. A . character
c. The JSON payload of the request you received. NOTE: You must get the raw payload of the request. Check your programming language or frameworks on how to get the raw payload of an API request.
Posted by Aldren Gadon 3 months ago
What should I do if I encounter a 429 error?
Error code: 429
Posted by null 4 months ago
sandbox
how to access the sandbox environment in paymongo and how to use it? can you helpme?
Posted by john 4 months ago
Why is my webhook not working on Livemode?
Webhook is fine when I'm testing it out using TEST API but when I use LIVE API KEYS it does not work?
Posted by Christian 4 months ago