How can I add a payment gateway method to my chrome extension - google-chrome-extension

I create a chrome extension and want to add a payment gateway method How can I add a payment gateway method to my chrome extension

Depends, What's your Chrome Extension based on?
If it's just a normal extension with a Donate Me button, You could use PayPal and link a button/image.
If it's a subscription based, You will have to link it to your website and set it up to send/receive messages and give the user access to the extension.
To know more about setting it up check:
https://developer.chrome.com/docs/extensions/mv3/messaging/#external-webpage

Related

Chrome extension: no pricing options when publishing

I'm trying to upload and publish a chrome extension I've made with a simple one-time payment. I've found this article which makes me think I should just have pricing options on the upload page. I've hooked up my merchant account and set a valid payment method, as well as verified it but I still don't get any pricing options--when I load the page, the pricing options appear for a moment and are then replaced with just the distribution region checkboxes. Any ideas for solving this?
I think this is the same issue with this
Chrome Web Store payments - We are disabling the ability to create new paid items or add payments to existing items. This includes extensions, themes, apps, and in-app purchases.

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.

Adding monthly subscription payment to chrome extension

I'm approaching completion of my chrome extension and need to explore monthly subscription options. What is the best approach to doing this?
As #Deliaz stated, Chrome Web Store Payments supports both monthly and yearly subscription models. As with one-time Chrome Web Store payments, you have the option of providing a free trial.
For details about app payment options, you may check the Charging for your app documentation in the Overview.
Unfortunately the top-voted answer on this mentions Chrome Web Store Payments which was shut down by Google on February 1, 2021.
The only other thing I know like Chrome Web Store payments to monetize your extension is ExtensionPay. It's open source and works on all browsers, not just Chrome, which is nice.
Otherwise, you'll need to build an authentication system and sync it with your extension. Then you'll need to use a way of taking payments like Stripe or Paddle or Paypal or something and sync that with your user's extension.

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.

Gmail API in a Chrome Extension

I am trying to get Gmail updates in a chrome extension, other than oauth is there anything specific thing I need to do, to import the Gmail API into the extension?
Here is a complete code example from the most credible source.
You will also need to connect to Gmail with either the the IMAP or SMTP protocol in order to check for new emails.
There is a lot of documentation from Google on how to implement OAuth2 for your extension as well as how to connect to Google Services.
The documentation will tell you what kinds of permissions you'll need.

Resources