PayPal integration?
-
I understand FSCF doesn’t offer PayPal integration. Can I configure one of my forms to be integrated with PayPal? If so… Is there a tutorial for this somewhere?
-
no it does not, but I am not sure what you need to accomplish it?
Can you explain why or how you want to use it?
this is what I do
http://www.fastsecurecontactform.com/add-paypal-buttonThanks Mike,
What I need to do is for people to be able to fill in two fields (invoice #, amount) and when they click ‘submit’ they are taken to paypal where they can pay the bill. I’m sure variables are passed.
I’ve never setup anything with PayPal before, so I apologize for my lack of details of what needs to be done right now.
The page I’m needing to replicate is http://www.irenas2340.com/paypal.htm.
Am I able to change the
<form>action? A tutorial on the PayPal website says I’ll need this…<FORM action="https://www.paypal.com/cgi-bin/webscr" method="post">With this method you can change the form action URL to anything
http://www.fastsecurecontactform.com/ssl-form-action-urlInside the function replace the
$form_action_url = preg_replace( '|http://|', 'https://', $form_action_url );$form_action_url = 'https://www.paypal.com/cgi-bin/webscr';Mike,
I really appreciate the instructions.
Thank you very much
It worked for me, somewhat. I am unable to choose only 1 of my 2 forms. I am not proficient with PHP so in the two places it wanted form numbers I tried each one individually, and all combinations of both. If I don’t keep both form numbers I get the following warning…
Warning: Missing argument 2 for my_action_url_ssl() in path/functions.php on line 6
Here is the working code, though I’m only wanting the paypal URL on form 2.
function my_action_url_ssl($form_action_url, $form_id_num) { ################################## // control which forms you want this on $all_forms = false; // set to true for process on all forms, or false to use settings below $forms = array('1', '2'); // one or more individual forms ################################## if ( !in_array($form_id_num, $forms) && $all_forms != true) return $form_action_url; // force form action URL to be SSL $form_action_url = 'https://www.paypal.com/cgi-bin/webscr'; return $form_action_url; } //filter hook for form action URL add_filter('si_contact_form_action_url', 'my_action_url_ssl', 1, 2);set like this for form 2 only
$all_forms = false; $forms = array('2');Well… It worked for me. I swear I had tried it before and received the error. Thanks again.
If you get that working please send me the URL
if you want it private, send it here
http://www.fastsecurecontactform.com/contactThanks
I would be very interested too – as I am looking to integate paypal payment within my forms.
ThanksPaul,
All of the code you need is right here in this thread. For it to work though, you need to be using version 4.xx. (The Beta version)
Thanks for the reply – just got back to this after some time!
I have created my function as described above and using version 4 form.
Not sure what else I have to have in place to make it work – a little bit more detail would be a great help!TIA
Paul
Hi Paul,
I’m no expert, but I will try to help out. That function should be all you need, along with a corresponding form. You asked for more details… What isn’t working for you?
Thanks for replying.
It was the format and content of the form data that I wasn’t sure of and would love an example.
How does the paypal user account information get included in the form?Paul
The paypal user account is passed by using a hidden field. Here is a guide to help you get started. https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/ I could not find the exact guide I used 2 months ago.
If by format your form you are referring to “customizing/making it look the way you want”. You use CSS.
Not sure what you’re asking about with “content”.
The topic ‘PayPal integration?’ is closed to new replies.