Woocommerce checkout to process order on an separate WordPress site? - stripe-payments

HOW TO MAKE WOOCOMMERCE BRIDGE !?
SITE A : WooCommerce have products no accepted by Stripe
Payment Gateway : WooCommerce Custom Payment Gateway Pro "Plugin"
Plugins related to this trick : AffiliateWP
SITE B : WooCommerce have products accepted by stripe
Payment Gateway : Stripe "Plugin"
How can I make integration between these site I want to make SITE B handle all Payment Process will come from SITE A
Explanation: when customer make order via SITE A when Fill all details for order like (Name, Phone no, etc..) and Choose Payment method (Custom one the site use) when click Pay order the plugin must forward all these details to SITE B and direct process payment via Stripe.
I know many sites work like this and I did some research about it, when customer click on pay now it make redirect to link likes this
https://siteB.com/wp-admin/admin-ajax.php/?action=pay_create&order_id=12345&source=siteA.com&payment_method=stripe
I have done research about it right now I don't know how exactly I must make this integration but i know some information may be right
Use REST API in SITE B
Create endpoint in SITE B to start receive API request from SITE A
Send payment request from SITE A (handle all variables like order_id, amount, customer details etc,, ) using > WooCommerce Custom Payment Gateway Pro plugin
Receive request and process payment via stripe in SITE B
QUESTION IS : how to make these integration in the right way?

Related

STRIPE How to redirect after payment (through payment link)

Very quick question, I created a stripe payment link with the stripe dashboard to sell a digital product and what I want to do is that when the customer makes the payment it redirects him to an URL (where he will download the product he purchased)
Is it possible to approach directly with the dashboard and no coding?
Yes it' possible. You can select the Don't show confirmation page option and key in the URL that you want your customer to be redirected to.

How can I sent an payment invoice to my client email using node.js

Now I want to make an eCommerce website. In this website, I want to implement a feature like when a client or user buy something from my website and they also pay with any payment gateway (In case I use Stripe payment gateway) After completing payment, I want to send an automatic order completion invoice to my client email with product name, quantity, subtotal, total and so on. That means we receive our client order and payment.
**
Advanced Thank's
Ariful Islam JR.
MERN Stack Developer**
I have no idea about this problem to get a solution.
It sounds like what you really want is a receipt to be sent to your customer on payment completion. There's a couple ways to achieve this. Assuming you want the customer to pay on your website and not on a Stripe-hosted page, then you could use the accept a payment guide with a custom flow and add a receipt email when creating the PaymentIntent. This would email your customer a receipt on successful payment completion. You could also achieve this with Stripe Checkout if you want a Stripe-hosted payment page by enabling email receipts in your settings.

Paypal integration with Paypal IPN

Need some help for Paypal integration. I did all the configuration what is mentioned in the documentation like: Paypal gateway URL, Return URL (Success), and Notification url (~/CMSModules/Ecommerce/CMSPages/PayPalIPN.aspx). But my order status is not updating even after the successful payment.
Using sandbox account for testing
Able to redirect to Paypal page (Sandbox account) and on completion of payment, successfully redirected back to site (thank you page) configured as Return URL in settings
Below is the sample return URL from after succesfult payment
/ConfirmPaypalPayment.aspx?amt=5.00&cc=USD&cm=en-US&item_name=Order%20ID%3A%201177&st=Completed&tx=83L5281177755044V
How can I make sure PaypalIPN is executed properly,
what else I need to do/check other than what I mentioned above.
Can we debug the the code PaypalIPN.asps.cs
Is there any webpart I need to add on the thank you page(ConfirmPaypalPayment)
I am testing this in my local site with Sandbox account
Please suggest.
Thanks,
Sharath
Documentation says: The default Kentico PayPal provider does not utilize payment notifications – Webhooks or Instant Payment Notification (IPN). If you require payment notifications for any custom functionality or integrations, you need to configure the related options for your PayPal Business account and implement the required handlers (either within the Kentico web project or a custom project).
The return page(thank you page) must contain the PayPal payment execution web part, which processes the payment URL parameters provided by PayPal and completes transactions.
So there is no IPN in the default payment flow, if you want to use IPN take a look at Creating a custom payment gateway. There is there an explanation and a code sample.

Can you use an external cart in Shopify thats hosted on an external website?

I am creating a website that is not within Shopify where a customer can select items and then make purchases. I want the customer to use a cart that I'd create vs a redirect/open new window when they want to make a purchase. I do have a Shopify Store that has the products that contain the variants and their prices.
I am using node.js and express and the shopify-node-api (https://www.npmjs.com/package/shopify-node-api) module.
I would like to know if this use case is possible:
Customer goes to my site http://example.com (external to shopify)
Customer makes their selections of product by clicking 'add to cart' on http://example.com
The cart that I create on http://example.com gets updated with the line items and prices
Customer clicks 'checkout' button on http://example.com. There is ajax communication between http://example.com and my shopify store.
My shopify store handles the purchasing/credit card info in the background and once successful or errors out, sends a response back to http://example.com to notify customer of success or errors.
I am attempting to use Shopify as a service to handle the credit card transactions without the need to redirect them to the Shopify store. I would like to user their AJAX API to communicate with http://example.com.
Based on the documentation, it is unclear if the http://example.com needs to be hosted within Shopify.
So far, I am only able to make get requests successfully. I am running into difficulties POSTING to Shopify.
I have followed both the Private App and Public App Guides.
I currently am using a Public App and have recently obtained a permanent token. Still unable to Post to the Shopify Cart. Does anyone have any success doing such? Or can offer an example or documentation on how to do the above?
I do not think that this can be done via ajax. The way that I figured out is to build a local object from the customer choices and then parse the object to build the url that will post to shopify. Then show the shopify cart within an iframe.

PayPal payment without redirection to PayPal's website

Is there any way to integrate PayPal without redirecting user to PayPal's website for payment in case of debit cards or PayPal payment type ?
Yes you can, it is explained by Paypal here : https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/
There are paypal products available in some countries with this functionalisty. I heard that Payflow Pro and Paypal Payments Advanced have such functionality.
But actually from my developer experience, if Stripe platform is avaialble for country where your project is hosted, then better to use Stripe Elements - they found a way to securely place fancy controls to get CC info in a way your website can get just either a token or a payment method object, without redirects, and if necessary, show a popup with 3D secure window during payment flow.

Resources