Sage Pay Integration with a simple html form - html

I have a html form that works. I also have a sage pay account that works.
How would I go about simply posting the submissions from my form to my sage pay account?
I want it to work very much like a paypal pay now button works where the info and fields are posted to the sagepay account where the user will make a payment.
I have tried looking through the docs but my java/net knowledge is limited.

Which integration are you trying to use? SERVER/DIRECT/FORM?
FORM is like PayPal express, you get a redirection to Sage Pay, customer pays and returns to your site.
You can find code samples here http://www.sagepay.co.uk/support/find-an-integration-document/form-integration
Pablo.

Related

PayPal Buy Now with SQL database update

How would I go about creating a Buy now paypal button for a website. And having a textbox where the buyer can enter some text and when they buy "as in the payment works instantly" have the string be added to a database?
Are you using a CMS? What language have you written your site in?
PayPal provide APIs for multiple language and code which can be generated for dynamic buttons. Have you looked through the developer documentation? First sign up for a developer account and assess the options that are available for you. PayPalAPI Overview
I think you want to achieve a "Sale" through PayPal rather than an Authorization -> Capture and store the unique PayPal reference to SQL against an order!
If you want to receive Paypal payments , you must deploy some code on you web-server .
API documentation is here :
https://developer.paypal.com/docs/api-basics/#
And very important you can test all your workflows with Paypal sandbox
https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/

Check if payment received paypal?

I am making a website where people will buy things. What I am wondering is if there is a way to check if payment was received in paypal, and then execute some code. Or should I add a paypal widget where when payment is done then it executes some code? This is all being done in HTML and CSS being it is a website.
Take a look at Instant Payment Notification (IPN). Any time a transaction hits your PayPal account their server will POST the transaction data to a URL you specify. Your script receives the data, verifies it with PayPal to ensure it actually came from them, and then you can process that data however you need to.
This gives you the ability to update your own database, send out your own email notifications, hit 3rd party web services, or anything else you want to automate when transactions hit your account. This works for payments, refunds, disputes, etc. so you can automate lots of tasks. It happens in real-time, too.

How to create multiple payment options

I am looking to implement a donations form on a political party website, but rather than using the default single "Donation" button I would like to have a menu with multiple payment options, much like the form found here: https://www.oaklandgop.net/donate.
I can't seem to find this option on the PayPal's basic button creator, so I'm assuming this must be done with custom HTML? Sorry if this question has already been asked; I wasn't able to find any relevant answers on the forum.
Thanks,
Justin
You wont find an option like this for the basic button creator. If you are wanting to accept the credit card information on your site, you would have to use Pro. There wouldn't be a problem with collecting any of the other information as the form would be on your site so you could ask for what every infomration you want.
If you use standard, you can collect the information on your site and pass it over to PayPal during the payment flow. However if you are using standard, you would also need to redirect the buyer over to PayPal to enter in their credit card informatioin and make the payment.
You do have a few other options as well. For example you could use Express Checkout. With Express Checkout the buyer would have to enter in the credit card information on PayPal's page or log into their PayPal account to make a payment. However, you could set up the flow in the following way. The buyer selects the amount that they wish to make a payment for. You make the SetExpressCheckout API call and get your token back. You redirect the buyer over to PayPal where they enter in their credit card information or sign into their PayPal account and agree to the payment. They are then redirected back to your site, where they fill in the rest of the information, and then you execute the DoExpressCheckout API call to complete the payment. You could also collect the information up front as well.
There are also hosted pages you could use as well to do something similar to this as well, but if you are wanting the buyer to enter in the credit card information on your site and keep this all in one form, your best option would be to use pro.

Adwords Contact Form Tracking

We have a senario whereby which we are tracking a contact forms submission via Adwords Conversion tracking code and assigning that as a PPC conversion.
This is a lead generation website; therefore the issue coming to light is that they have good SEO and receive a large amount of contact form submissions organically.
We need to find out the success of contact form conversions via the PPC and can then account that to ROI; therefore we receive a Bc on the contact form submissions and would like to know if there is a way in which we could tag all PPC contact form submissions details i.e. a email address etc and then we can separate those from SEO form submissions and then get them to look at those PPC enquiries only and feedback on the success.
Does anyone know of a solution, or the best way to attack this?
Thanks
Are you using Google Analytics? It should be able to determine the source of your leads so you can break them out into leads by SEO and leads by PPC.
Or are you trying to figure out the exact traffic source of each individual lead you receive in an email. I've used a tool called http://convertable.com which does exactly this since Google Analytics doesn't really track beyond the initial contact form submission.
Did you hear that AdWords launched a conversion import feature and API late last year? https://support.google.com/adwords/answer/2998031?hl=en
The case they talk about a lot is lead conversions. Here's how it works. Put simply, you capture the click ID from every ad click. If one of those people goes on to submit a lead, you store the click ID (called a GCLID) along with the lead's information.
Then, if the lead goes of to become qualified or even becomes a customer, you send the GCLID back to AdWords along with the date/time it converted, and AdWords records it as an actual conversion. They you can get reporting, or use their bid automation, to optimize for these.
Does that help?
Jon
We have a senario whereby which we are tracking a contact forms
submission via Adwords Conversion tracking code and assigning that as
a PPC conversion.
Why don't you just track the contact forms submissions as a analytics goal? if you want to add a value to them you can just give a fixed amount in analytics.
This is a lead generation website; therefore the issue coming to light
is that they have good SEO and receive a large amount of contact form
submissions organically.
We need to find out the success of contact form conversions via the PPC and can then account that to ROI;
You can look at Source/Medium in the Acquisition section, or in the Conversions section of analytics or create a custom report with this information.
therefore we receive a Bc on the contact form submissions and would like to know if there is a way in which we could tag all PPC contact form submissions details i.e. a email address etc and then we can separate those from SEO form submissions and then get them to look at those PPC enquiries only and feedback on the success.
you can associate email accounts to source/medium by tracking utm codes in the backend so that every time there is a submission you would have saved the utm_source and utm_medium parameters from the URL submission request (https://support.google.com/analytics/answer/1033867?hl=en).
Another way of doing this is using a fremium tool like KISS metrics - https://www.kissmetrics.com/ or mixpanel - https://mixpanel.com

PayPal Sandbox developer account ask me the enter Credit card information

I have paypal sandbox test account. I am trying it with HTML form. It displays a 'Buy Now' button on HTML page and after clicking on it redirects to PayPal site. Where it ask to login to buy product but after that it is asking me the credit card information. I think as it is sand-box account it shouldn't ask me credit card as it is for testing purpose. I am right? please correct me and advice.
Thank you
Where you set up your sandbox seller account you can also set up fake buyer accounts that you can use by logging in with or create fake credit cards with for testing. This lets you go through the whole process so you can test/develop your PDTsuccess and IPN success stuff if you want...
Here is how to make this buyer account
I have very little experience with Paypal, but I think that sandbox accounts should ask for credit card numbers. How else can you test whether you are getting the correct responses in case of a valid payment/failed payment?