Pay Pal and amazonr codes

Hello!
My client asked me to ad code related to his PayPal and Amazone accounts.
Where do I ad this codes?

I think you should contact Wix Support for your issue. This forum is related to Corvid where we emphasis in custom coding (JavaScript & Corvid) issues.

The wix support sent me to your site :)… Do you know where on wix site can I put code related to Amazone and Pay Pal?

What code? Do you have links or code snippets?

@shantanukumar847
Guessing that they are talking about adding html code for it through iframe or tracking and analytics section and not through javascript in page code.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site

if not then as Shan says, more info is needed.

This code:
var captureOutboundLink = function(url) {
ga(‘send’, ‘event’, ‘AmazonPurchase’, ‘click’, url, {
‘transport’: ‘beacon’,
‘hitCallback’: function(){document.location = url;}
});
}

This is a Google Analytics code. I think you should explain your goal. What are you trying to do?

You might want to check with the service providers to see if they have an API available. A more secure way to handle web service requests is by using backend (server-side) code. Using backend code you can secure your passwords, API keys, and other secret information. The article Accessing 3rd Party Services explains how this is done. I recommend checking with the service provider to see if they provide a REST interface.

Following on from Shan and Yisrael’s answers above, they both do REST API that you can use and it would be a much better way for you to work.

Paypal.
https://developer.paypal.com/docs/api/overview/
https://developer.paypal.com/docs/integration/direct/payments/
https://developers.braintreepayments.com/

Amazon.
https://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html
https://docs.aws.amazon.com/apigateway/api-reference/
https://docs.aws.amazon.com/index.html?nc2=h_ql_doc_do_v

Although also note that you can utilise and make use of Wix Package Manager here as both Paypal and Amazon have nodeJS that you can use within Wix without having to do a lot of the code work yourself, you will just have to make sure that they are appropriate for your needs and you are using the correct one.
https://support.wix.com/en/article/corvid-managing-external-code-libraries-with-the-package-manager

Finally, if this is not what you are needing and you are just after the Google Analytics like Shan has said in his reply, then you can view the Wix Support pages about it all here.
https://support.wix.com/en/marketing-tools-analytics/marketing-integrations-tracking
https://support.wix.com/en/marketing-tools-analytics/google-analytics
https://www.wix.com/corvid/tutorial/how-to-use-corvid-with-marketing-tools-to-create-custom-events