get Stripe customer_id after successful order in Woocommerce - wordpress

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?

Related

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.

WooCommerce PayPal IPN (checkout fields)

I am working on a self hosted Wordpress website where we sell physical products and memberships and using the WooCommerce standard plugin to handle our cart / checkout. I use a tag to create the checkout page "[woocommerce_checkout]". For payment we only use PayPal. I have figured out how to capture the PayPal IPN so that I can do additional processing (i.e creating the member in the database) and this seems to work with no issue.
The problem is I would like capture the fields on the WooCommerce checkout page to be available in the IPN response from PayPal. For instance, first name, last name, address, email etc. How can I specify that these are included in the PayPal IPN? Is this available in the settings for the plugin or will I need to make my own implementation of the checkout page?
I found out you can get the information from the woo commerce tables in the database. The IPN contains the order id which can be used to look up more information about the order.

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.

Woocommerce Subscriptions Signup Fee as Installments

I need to implement Installment option for the Signup fee for Subscription products in my woo-commerce store.
I am using "Woocommerce", "Woocommerce Subscriptions", "Woocmmerce Stripe Gateway" plugins.
I have tried Woocommerce Installments plugin. But it just splits the Monthly subscription fee in to installments instead of Signup Fee.
I have even tried setting the signup fee of the item as 0 and sending invoice for installments using WP-Invoice - Web Invoice and Billing plugin. But the issues are there is no option for synchronized payment and setting duration.
I have even tried editing the plugin, but it ended up in a mess.
How can I implement this feature and achieve my goal?

Pass wordpress form data to checkout Page of shopify?

I create shopify shop and integrate it in wordpress website.And now I want to pass the custom form(created in wordpress) data to shopify checkout page.Data such as email,telephone,name etc.IS it possible or not?
Shopify API doesn't allow to create orders from outside services. You indeed can create carts with products / variants in cart (outside Shopify) and force the user to finish the buying process at PCI compliant Shopify checkout, which has 2 steps: (considering s/he is not authed)
A.- Buyer enters billing / shipping info as well as email address.
B.- Buyer enters discount coupon/s, chooses shipping method, enters payment info (credit card, paypal, wire, cod...)
Checkout url will look like: checkout.shopify.com/carts/your_store_id/cart_id

Resources