Testing Paypal payment processing - wordpress

I'm new at integrating PayPal into a woocommerce/WordPress site. I'm testing the payment process. When a customer purchases an item and checks out using the PayPal method, it shows up in WordPress as "processing". How long does it take for the money to be received into the bank account and do I have to manually set the status to "completed" or does it do it automatically?
Thanks

Related

PayPal Instant Payment Notification for Held Payments

So I'm using an API to receive payment notifications,
I don't really care what's in the notification I just want paypal to notify the API when a payment has been made and execute my own code.
So first off is this even going to work?
I put the URL for the API in the Instant Payment Notification under my account settings. My account is still new because I sent a test payment and it didn't work, do held payments not notify the IPN?
If the payment is held within PayPal it will notify via IPN, yes. You will be able to see such held payments by logging into www.paypal.com and viewing the activity. There will also be a "pendingreason" value in the IPN, to notify you of why it is held.
Note that if at transaction time a "notify_url" is set by the integration (many older shopping carts do this), that URL will be used in place of whatever is set at the account level in www.paypal.com. Whatever was set at transaction time has precedence.
--
If an order is "on hold" by your shopping cart (pending payment), PayPal will not send any notification as nothing has taken place within its system (except maybe a checkout attempt that was clicked on but not finished for whatever reason)

WooCommerce PayPal Payments user redirection after credit card decline not working

i'm testing WooCommerce PayPal Payments with a paypal sandbox account.
When i test credit card payment decline (in particular with insufficient funds rejection trigger https://developer.paypal.com/tools/sandbox/card-testing/#rejection-triggers) after the payment fails the user is not redirected to the thank you page where he can see that the card was declined but is being redirected again to paypal sandbox page to retry the payment without any failure message being displayed.
Why is this happening? Shouldn't the user get a card declined notification somewhere?
I have solved the issue with the help of Woocommerce Paypal Payments forum.
Basically, in 1.9.5 implementation, when the credit card fails the plugin restarts the payment process up to two times then sends you back to the checkout page where is displayed the error.

WooCommerce or Stripe webhook for triggering shipping?

I’m selling ditigal goods and I am wondering how to trigger the delivery once the payment has been validated on my Store.
Option 1 : Get webhook from stripe
First option would be to create stripe webhooks and proceed to sending my products once payment has gone through.
But does Stripe have the info of what products have been bought by customer, apart from amount paid?
Option 2: Get webhook from Woocommerce
Second option is that Woocommerce get the info from stripe, then create a webhook there so that I sell the right goods since Woocommerce may have all the infos.
Any ideas of what webhook to create?
But does Stripe have the info of what products have been bought by customer, apart from amount paid?
Yes, it does. The checkout.session.completed event includes the Checkout Session object, which in turn includes (NB not by default) expandable line_items list.

PayPal IPN in WooCommerce

I am just wondering which table stored the PayPal IPN in WooCommerce. The dashboard in wordpress(woocommerce) can not see so much information in the PayPal IPN, only few of them like Payer first name,Payer last name,Payer PayPal address,Payment type,PayPal Transaction Fee. I want to see more about the IPN data such as if the paypal is verified, phone number, registered country, etc.
In your dashboard You will see:
Order #ORDER_NUMBER details
Payment via PayPal (`PayPal Transaction ID`).
In your PayPal account access Instant Payment Notification (IPN) details page. profile -> selling preferences -> Instant Payment Notification Preferences. Click IPN History page and search the transaction id that you see in WooCommerce. You will see all the information about this IPN. HTTP response code, Delivery status, the actual message sent by PayPal.
You can also access the transaction id from WooCommerce table.
select meta_value
from wp_postmeta
where post_id=ORDER_NUMBER and meta_key='_transaction_id'
replace ORDER_NUMBER with your WooCommerce order number.
Some might need the IPN data from PayPal to feed into other in-house operational processes, like shop floor order processing, etc., rather than having woocommerce consume all the IPN data and only 'keep' part of it for display. Better to either save it all, or offer a configuration option to specify a 2nd IPN listener the data could be piped to, in order to facilitate automation of other order processing systems.

Wordpress woocommerce - Creating order at payment/checkout process

I am using woocommerce plugin version 2.6.14.
Whenever customer initiates a payment process (via PayPal) to deposit funds in the wallet, a new order is created whose email is sent to both customer and admin. Now, this order's email will confuse the customer because such order has not been created. For the customer, this is a simple add funds process.
I found this URL but I dont know how to resolve this issue in my code.
Woocommerce checkout process creating new order at payment
Please help.

Resources