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.
Related
We have a Stripe Gateway plugin on WooCommerce.
When order is complete I need to get customer_id from Stripe customer profile and send it to our third party api.
Is there a hook available in WooCommerce to do this task?
Whether Stripe returns back to WooCommerce with some data that I can access?
I tried this...
Goto WooCommerce > Settings > Products > Inventory and remove any value that is present in the Hold Stock (minutes) field.
Normally that is set to 60 minutes (to reserve inventory). If an order is not paid, then WC will cancel the order and release the inventory for use.
But this doesn't affect my problem.
Is there any other solution available for this problem.
For the note, I' using the Paytm payment gateway and Paypal's payment gateway.
So the query was solved. As I'm using the paytm payment gateway and also PayPal payment gateway so when I approach to cancel the payment using the Paypal it restored my cart with an item but when I approach to cancel the payment using the paytm it doesn't restore the cart with items. So basically its plugin problem, as Paytm payment gateway plugin doesn't have that facility to restore the cart if we cancel the payment made using the paytm. So, if same problem occurs to you ask for help with the payment gateway developer as I ask paytm payment gateway developer.
I have Woocommerce, UPS shipping and USPS shipping plugin activated on site. Things work working perfectly before the latest update of plugins. I am using Woo 2.6.3 and its addons.
After the update PayPal is not able to receive the shipping cost for the order and hence it process only product total without shipping cost and on site we receive an error as:
Validation error: PayPal amounts do not match (gross 2.75). Order status changed from Pending Payment to On Hold.
When I checked the log for PayPal in the request woocommerce does not add shipping cost under "payment_gross" and "mc_gross"
I have posted ticket for same to Woocommerce support but they will take too long to revert and as it's a live site I can't hold that much.
WooCommerce 2.6+ sends shipping costs as a ‘real’ shipping line item via PayPals API.
If your PayPal account has shipping rules setup within it, these will take over and remove the cost WooCommerce sends across.
So You need to remove all the shipping rule set from your paypal account.
Check below link for more details:
https://docs.woocommerce.com/document/paypal-standard/#my-shipping-costs-are-not-transferring-to-paypal
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.
I used woocommerce product to subscribe automatic recurring payment through stripe payment gateway in my site.I have used woocommerce,woocommerce subscription,woocommerce stripe gateway plugins for this process.
First payment for subscription is working fine,but automatic recurring payment is not working with stripe.
Here are the plugin links that i have used.
http://www.woothemes.com/products/woocommerce-subscriptions/
Can anyone provide solution for this issue?
Please do reach out to our support at WooThemes as we'd be happy to see what's happening here. Our official Subscriptions and Stripe extensions do work and have automatic recurring payments.
Here's a few things to check:
Be sure you have the latest version of WooCommerce, Stripe extension, and Subscriptions.
There may be a cron issue with your WordPress site. Try using WP Crontrol to find if there are any cron jobs that have been halted.
Find the scheduled payment that did not process and use the action scheduler to see if it was never fired. You can find this by navigating to /wp-admin/edit.php?post_type=scheduled-action. In the search box, enter {order_id}_ i.e. the ID of the order in which the subscription was purchased followed by an underscore. For example, for a subscription purchased in order 3125, the search string is 3125_.
We've also struggled with Stripe payments not automatically renewing (the initial payment goes through but not any of the renewal payments). We did try WooThemes support but they couldn't find the order as it was made by another web design company so we didn't have access to the order details. Also, you'll find the log's aren't very verbose.
The solution:
Go to: WP-ADMIN > WooCommerce > Settings > Payments > Click "Manage" next to Stripe > Click the box next to "Saved Cards". This needs to be enabled or it won't take payment.