Hi,
I am using V4 and see that Chronoforms has an interface to PayPal Website Pro but I need to use PayPal Website Standard (this is a low-budget item for a church).
I would much appreciate some guidance on how to handle this transaction. I know how to create the button within PayPal, but I can't figure out where to put that code.
I tried using a custom code action as the first one in the "On Submit" event, followed by email, followed by thank you message.
But my PayPal button ended up on my thank you page, and the email gets sent immediately before the PayPal transaction occurs, not quite what I want.
Is there any way to do the following:
- error checking with Javascript (I have this now - my submit button goes to a javascript function first)
- when all is ok, send to PayPal
- if PayPal transaction completes, send email
- if PayPal transaction doesn't complete, do not send email; instead, send user to a page with message of "Sorry - your registration cannot be submitted without payment" or something similar.
Can something like this be done with just Website Standard? What actions will help me - would Event Loop? I don't understand how that works - is there any documentation that would help?
Thanks in advance for any pointers you can provide. I apologize if this is a duplicate - I tried to submit a post earlier today but it apparently did not go through (didn't show up when I did "view my posts".
I am using V4 and see that Chronoforms has an interface to PayPal Website Pro but I need to use PayPal Website Standard (this is a low-budget item for a church).
I would much appreciate some guidance on how to handle this transaction. I know how to create the button within PayPal, but I can't figure out where to put that code.
I tried using a custom code action as the first one in the "On Submit" event, followed by email, followed by thank you message.
But my PayPal button ended up on my thank you page, and the email gets sent immediately before the PayPal transaction occurs, not quite what I want.
Is there any way to do the following:
- error checking with Javascript (I have this now - my submit button goes to a javascript function first)
- when all is ok, send to PayPal
- if PayPal transaction completes, send email
- if PayPal transaction doesn't complete, do not send email; instead, send user to a page with message of "Sorry - your registration cannot be submitted without payment" or something similar.
Can something like this be done with just Website Standard? What actions will help me - would Event Loop? I don't understand how that works - is there any documentation that would help?
Thanks in advance for any pointers you can provide. I apologize if this is a duplicate - I tried to submit a post earlier today but it apparently did not go through (didn't show up when I did "view my posts".
Hi JerseyGirl,
Well, you need 2 things here:
1- Action to redirect the user to Paypal once he/she clicks the submit button.(Bob has made this one and its ready)
2- in order to capture the response from Paypal standard which tells whether the transaction has passed or not, some action should be created for that, this action is not yet ready but I have the code for it, when do you need this done ?
Regards,
Max
Well, you need 2 things here:
1- Action to redirect the user to Paypal once he/she clicks the submit button.(Bob has made this one and its ready)
2- in order to capture the response from Paypal standard which tells whether the transaction has passed or not, some action should be created for that, this action is not yet ready but I have the code for it, when do you need this done ?
Regards,
Max
Well, I was hoping to make this form public next Monday or Tuesday. I'd be willing to put out something less than optimal on Monday (by that I mean the email might go out whether or not the PayPal transaction works) and then upgrade whenever you have the next action ready.
The response to questions on this forum is amazingly fast. Thank you! What other forums would it be most useful to you for me to spread that word?
The response to questions on this forum is amazingly fast. Thank you! What other forums would it be most useful to you for me to spread that word?
Hi JerseyGirl,
I'm sure that you had a post before because it was on my list to answer.
You need to Upgrade to CFv4 RC1/7 if you haven't already got that version installed.
Drag a Redirect User action to the bottom of the OnSubmit Event box. This needs to be the last action. (You can put a static URL in here if you just need to redirect the user - but leave it empty to use with PayPal.)
Open the cURL actions group and drag a Redirect URL action into the OnSubmit Event. Move it up somewhere before the ReDirect User action. Note that this action just builds the URL to redirect to - the actual redirection is done by the Redirect User action later.
Configure the Redirect URL action - put the PayPal https://www.paypal.com/cgi-bin/webscr URL in the Target URL box then add the parameters you need in the textarea.
The syntax for the textarea is:
[list]Fixed value: param_name=value
Variable value from the form: param_name={input_name}
Empty value: param_name=NULL [/list]
Standard PayPal doesn't give you much information about the payment. You can add a Return URL and a Cancel URL and detect these. But I don't think that the Return URL tells you if the payment has failed or not, you have to check that manually* if you think that there's a risk. The PayPal email will give you the info.
Bob
* You need PayPal Instant Payment Notification (IPN) to get instant confirmation. I have a PayPal IPN plug-in for CFv3.2 that I'll get ported to CFv4 sometime. It's complex as there is an exchange of information behidn the scenes.
I'm sure that you had a post before because it was on my list to answer.
You need to Upgrade to CFv4 RC1/7 if you haven't already got that version installed.
Drag a Redirect User action to the bottom of the OnSubmit Event box. This needs to be the last action. (You can put a static URL in here if you just need to redirect the user - but leave it empty to use with PayPal.)
Open the cURL actions group and drag a Redirect URL action into the OnSubmit Event. Move it up somewhere before the ReDirect User action. Note that this action just builds the URL to redirect to - the actual redirection is done by the Redirect User action later.
Configure the Redirect URL action - put the PayPal https://www.paypal.com/cgi-bin/webscr URL in the Target URL box then add the parameters you need in the textarea.
The syntax for the textarea is:
[list]
Standard PayPal doesn't give you much information about the payment. You can add a Return URL and a Cancel URL and detect these. But I don't think that the Return URL tells you if the payment has failed or not, you have to check that manually* if you think that there's a risk. The PayPal email will give you the info.
Bob
* You need PayPal Instant Payment Notification (IPN) to get instant confirmation. I have a PayPal IPN plug-in for CFv3.2 that I'll get ported to CFv4 sometime. It's complex as there is an exchange of information behidn the scenes.
Hi JerseyGirl,
Just a quick note, the "Redirect User" action wasn't included in the RC1.7 release (will be in the coming one of course), please contact me through the contact us page and I will send it to you with instructions.
Regards,
Max
Just a quick note, the "Redirect User" action wasn't included in the RC1.7 release (will be in the coming one of course), please contact me through the contact us page and I will send it to you with instructions.
Regards,
Max
This topic is locked and no more replies can be posted.