Discussions
Why can't I reuse the Payment Method ID for future transactions?
Posted by Inquisitive Dev about 4 years ago
Invalid Payload Format when creating Payment Intents
I am trying to create a payment intent using the api reference guide but the response I am getting is status code 400 with error details
{"errors":[{"code":"invalid_payload_format","detail":"attributes cannot be blank."}]}
I based my payload on the api guide, here is the payload
const paymentIntentData = {
attributes: {
amount: totalAmount,
payment_method_allowed: ['card'],
payment_method_options: {card: { request_three_d_secure: 'any' } },
currency: 'PHP',
description: 'GoBigas',
statement_descriptor: 'GoBigas',
metadata: { 'data': 'data'}
}
}
const paymentIntentOptions = {
headers: {
'Content-Type': 'application/json',
Authorization: `Basic ${window.btoa(apiKey)}`
},
}
const paymentIntent = await axios.post('https://api.paymongo.com/v1/payment_intents', paymentIntentData, paymentIntentOptions);
Posted by Raven Dorado over 3 years ago
React Native Supported
Is Paymongo supported by React-Native, specifically for accepting gcash and credit card payments? Thank you!
Posted by Aspiring Developer over 3 years ago
Cannot retrieve webhook data
Hi, why is that I cannot dump the posted data on my webhook? Is there any request header or parameter needed? Aside from, of course. the authorization using secret kay. Thanks!
Posted by Ruther Bergonia over 3 years ago
Why am I receiving a 3d secure complete response despite inputting the wrong OTP?
Posted by 🤔 about 4 years ago
Paymongo on Wix
Will Paymongo work on Wix?
Posted by Kai Quin over 2 years ago
Are modals required for 3D Secure Authentication?
Posted by Curious Dev about 4 years ago
How can I lower the purchase amount from 1000 to 100?
Hi, I am using woocommerce and paymongo plugin I tried to checkout using gcash & grab pay but paymongo requires minimum of 1000 amount. Is there a way to lower 1000 to 100?
Appreciate your help
Posted by Fel about 4 years ago
Paymongo not accepting my payment
I am trying to pay with my wellsfargo visa credit card through paymongo for a transaction in the philippines, but it keeps on giving a message that this payment type is not accepted, try a different payment method or credit card. I have sufficient fund and there is no issue with the bank institution here...
Posted by Jolina Salcedo almost 3 years ago
Need help in generating webhook signature from source.chargeable event request
Header received in a request...
"Paymongo-Signature": "t=1620901532,te=0c6fcee4abf200e6b8858c2b6fc5f773c3920e1087f9cb4c4d67d4c7212dbe7d,li=",
payload received:
"body": "{\"data\":{\"id\":\"evt_kVBbtHrJcsHSNC2oAKoGcjsL\",\"type\":\"event\",\"attributes\":{\"type\":\"source.chargeable\",\"livemode\":false,\"data\":{\"id\":\"src_MGZPYvicoDMSQrv7tbn7tGjR\",\"type\":\"source\",\"attributes\":{\"amount\":15500,\"billing\":{\"address\":{\"city\":\"Bengaluru\",\"country\":null,\"line1\":\"\",\"line2\":\"Marine Drive, Benga\",\"postal_code\":null,\"state\":\"Karnataka\"},\"email\":\"[email protected]\",\"name\":\"Shashi Kant\",\"phone\":\"6203362289\"},\"currency\":\"PHP\",\"livemode\":false,\"redirect\":{\"checkout_url\":\"https://test-sources.paymongo.com/sources?id=src_MGZPYvicoDMSQrv7tbn7tGjR\",\"failed\":\"http://localhost:3000/checkout\",\"success\":\"http://localhost:3000/checkout\"},\"status\":\"chargeable\",\"type\":\"grab_pay\",\"created_at\":1620901511,\"updated_at\":1620901514}},\"previous_data\":{},\"created_at\":1620901514,\"updated_at\":1620901514}}}",
trying to create a signature
sign = "1620901532.{\"data\":{\"id\":\"evt_kVBbtHrJcsHSNC2oAKoGcjsL\",\"type\":\"event\",\"attributes\":{\"type\":\"source.chargeable\",\"livemode\":false,\"data\":{\"id\":\"src_MGZPYvicoDMSQrv7tbn7tGjR\",\"type\":\"source\",\"attributes\":{\"amount\":15500,\"billing\":{\"address\":{\"city\":\"Bengaluru\",\"country\":null,\"line1\":\"\",\"line2\":\"Marine Drive, Benga\",\"postal_code\":null,\"state\":\"Karnataka\"},\"email\":\"[email protected]\",\"name\":\"Shashi Kant\",\"phone\":\"6203362289\"},\"currency\":\"PHP\",\"livemode\":false,\"redirect\":{\"checkout_url\":\"https://test-sources.paymongo.com/sources?id=src_MGZPYvicoDMSQrv7tbn7tGjR\",\"failed\":\"http://localhost:3000/checkout\",\"success\":\"http://localhost:3000/checkout\"},\"status\":\"chargeable\",\"type\":\"grab_pay\",\"created_at\":1620901511,\"updated_at\":1620901514}},\"previous_data\":{},\"created_at\":1620901514,\"updated_at\":1620901514}}}
after running this with sha256 hash function the test-part in the paymongo-signature header does not match?
Need help as to what is the action raw json payload of the api request
Posted by Shashi Kant over 3 years ago