About Paypal payment error - asp.net

Good day all,
I am trying to add payment function (Paypal) to my website. I generated the code from Paypal and managed to put on my website. However, when I was trying to log in to my account as customer to make the payment. i got this error message:
Sorry, we cant complete yur purchase at this timing. Please return to the merchant and choose another way to pay
Any idea what the problem is and how to fix it? or if you all can suggest any other better payment function other than paypal for asp.net?
Thank you

Related

WooCommerce can't retrieve the order ID from order key in the URL when trying to charge recurring payment

I am running a Wordpress website with WooCommerce and Cartflows installed. I want to take subscription payment using the official WooCommerce Subscription plugin, however, I am facing an issue with the recurring payment process. The initial authorization is successful, but when the plugin tries to charge the recurring payment, I get an error and a failed order.
I checked the failed-scheduled-actions log file, and the following error message appeared: "DEBUG WooCommerce couldn't retrieve the order ID from order key in the URL." I have tried to troubleshoot the problem on my own, but I have not been able to find a solution.
If anyone has any experience with this issue or has any suggestions, I would greatly appreciate it. Thank you in advance for your help.

Cards won't work with paypal sandbox testing

I'm trying to create a simple subscription payment on sandbox PayPal.
I have a business account on sandbox, with which I have created a subscription plan.
Furthermore, I have a test user on sandbox with a credit card generated here: https://developer.paypal.com/api/rest/sandbox/card-testing/
Everything works fine but when I get to the payment confirmation I get this message: "Sorry, cannot use your chosen payment method to set up subscription item. Please try other payment method"
I tried using other cards or creating another test user but I always get this same error.
I've also posted the question in the paypal community but didn't get any response: https://www.paypal-community.com/t5/Sandbox-Environment/Subscriptions-payment-declined-because-test-card-not-working/m-p/3023752
Second problem: When i make a simple payment it works fine, but when I try the pay in 4, it tells me to setup a card (even though I already have a card setuped) and when I try to resetup it on the payment modal I get the error : "We cannot process your request at this time. Try again later."
I thought maybe if I add credit to my test account I can bypass this. But when I go to the page to add credit (https://www.sandbox.paypal.com/myaccount/money/addmoney/topup) it's blank and there are errors in the console.
So I tried to send money to me test account from another account and it doesn't work either...
I was wondering is there like an option or something I have to activate or disable in the settings so my test will work, or is the PayPal sandbox environment just bugged ?
If you need anymore informations or details don't hesitate to ask, I'm not sure if my explaining was clear.
Create a new sandbox personal account at https://developer.paypal.com/dashboard/accounts . Use that account to test the subscription.
The result of Pay in 4 payments is a PayPal payment. You can already test PayPal payments without Pay in 4 as a funding source. So, do not test Pay in 4 in sandbox. There is no reason to.

Woocommerce Paypal Standard: get Sandbox status

I'm working on a code to programmatically change paypal account based on cart, I've just one problem, I want to know if sandbox is active on Paypal Standard Gateway to serve sandbox account, or if I'm on live mode to serve live account. Someone knows how to get the sandbox status?
Tnx
Sorry, stupid question, I've looked for an hour but at the end I realize that the simple way is a standard wordpress get_option api:
get_option("woocommerce_paypal_settings")
Thanks

Paypal sandbox payment succeeded but not showing in sandbox summary

Hello Everyone i am using pay-pal sandbox for pay-pal express checkout. I am getting success and my payment Id, token id and payer Id also generated. But when I am going to sandbox summary, its not showing under my payment transactions.
Can someone please tell me what i am doing wrong? If payment got succeeded then why its not showing in summary area.
Sounds like you are using REST API and you have successfully "Create Payment".
You will need to fully run "Execute Payment" to complete the transaction. You can refer here for more information:
https://developer.paypal.com/docs/api/payments/#payment_execute

Asp.net, paypal and IPN.. how to automate payment?

i'm trying to integrate Paypal in an asp.net app.
It works fine, the last thing i would like to do is to automize payment notify.
In particular, how does it works IPN ? I would like to set a field to 1 when a user buy a service... How can i do with ipn ?
I'm asking here to avoid to read all 120 pages of paypal IPN documentation... ;)
Thanks in advance...
Theres lots of examples out there on how to build a basic IPN listener. Once you build one and point your PayPal account at it, all transactions will have their details sent to this listener as a request. You will need to parse out the relevant data from this request to determine the success of the transaction and process the order.
Similar SO Question
PayPal Code Sample
Other good sample C#

Resources