PayPal Buy Now with SQL database update - mysql

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/

Related

Cybersource Hosted Order Page Integration

I want to integrate cybersource as a HOP i.e. the user will be redirected to the service provider to complete the payment. I am not able to find proper APIs for generating the hosted order pay for redirecting the user. Have gone through a documentation of Cybersource:
https://developer.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Checkout_API/Secure_Acceptance_Checkout_API.pdf
But it doesn't seems to be helpful. Can anyone help me with this.
a better way to do this is through java script redirect. You don't have
to use the gateway to host anything.
This method is completely PCI compliant in that it will keep you out of scope.
You generate the payment page from your web site and use a java script to
redirect PAN data to the payment server.
I don't know if Cyber Source supports this. This is the same pattern that is
used by wallet payments. Your Direct debit payments can use the same method even though PCI requirements do not apply there ( yet ).
If you want a sample java script to do this let me know

PayPal email confirmation

Currently I am trying to implement API for PAY-PAL. So basically, there is a form and user will input their email address on the textbox and that will check if the email that user inputted is valid or not. So pretty much it is verifying if email exist or not. I have created the paypal developer account and searched through google to see if i can get any idea but it did not really helped me much. Can anyone tell me where I should start first? Also, there were something called adaptive accounts on paypal website but not sure if that is the correct one...
Thank You
Adaptive Accounts is deprecated and not available.
To verify that an email corresponds to a PayPal account, you need to integrate Connect with PayPal: https://developer.paypal.com/docs/connect-with-paypal/
To integrate a PayPal Checkout that will send the payment to a particular email address, you can set a custom payee object to direct the payment: https://developer.paypal.com/docs/checkout/integration-features/pay-another-account/

Sage Pay Integration with a simple html form

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.

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.

2 Legged Flow for service account authentication BOX

Is there any way for going around the login page required after getting a BOX token.
I need to use the BOX account as an admin so is there any workaround so that it can be done programatically.
If by the login page you're referring to the credentials page at:
https://www.box.com/api/1.0/auth/{your ticket}
that you redirect the user to after getting a ticket from:
GET https://www.box.com/api/1.0/rest?action=get_ticket&api_key={your api key}
Then the answer is currently no. As far as I know there's no plans to support an authentication method involving directly supplying credentials.
You can easily fill out the form and submit it without ever opening a browser. If you are using Python, you can do this with Mechanize or Clientform. I suppose you can do the same thing with other languages as well. But I'm not sure what the point is, since you need to authenticate your user, and the Box login page does the job nicely. If you don't want to make the user sign in every time, then serialize the token with a timestamp denoting how long you want it to be good for and use that token until it expires.
good luck,
Mike
there has been new developments since this question was posted, and now it's possible to use JWT (JSON Web Token) and Box Developers Edition to access Box.
If you create a developer account you will be able to create App users and login using an enterprise token and a private key file. Check out the docs for more information: Box Developer Edition
Additonally, boxsdk comes with support for Box Developer Edition