PayPal Emails

jabba 10 Jul, 2017
Hello! I've setup a paypal payment form that works very well (in sandbox and live).

This is private content



Only thing i can't get to work are the "transaction complete" and "transaction failed" emails. Both are enabled and setup and Joomla sends mail with no problems (email tests from global configuration are sent correctly). I will attach the configuration, what am i missing? Thank you!


This is private content

GreyHead 11 Jul, 2017
Hi Jabba,

It looks as if the Reply Name and From Name boxes are empty - that can stop emails being sent, please add values to them and see if that solves the problem.

Bob
jabba 11 Jul, 2017
Hello, values added but still no results.
Another thing i noticed is that the address that paypals get is wrong (but maybe this is because i'm working on sandbox).
I've enabled debug and the url seems fine
"Transaction complete" redirect and "transaction failed" redirect both work.
More screenshots:

This is private content



Thank you again!
G.
GreyHead 11 Jul, 2017
Hi Jabba,

If you add an email action before the PayPal action does that work OK?

Bob
jabba 12 Jul, 2017
Thank you for your answer. I have addedd an email in another section and it works (see attachment).
Maybe i've set up something wrong in the other mails? (i have used the predefined Chronoform template).
Thank you again.
Gianluca
GreyHead 13 Jul, 2017
Hi Gianluca,

It's more likely that there is an error showing up in the PayPal Listener action that is stopping the emails from being sent. Do you see any error messages in the server logs that give any useful clues?

Bob
jabba 13 Jul, 2017
Hello Bob,
sorry, no errors in the log files... Is there a way to automatically send the mail in the redirect page? To avoid this problem? Thank you
Gianluca
jabba 14 Jul, 2017
Hello again,
in your test Pyapal form after the "submit" section there is a "canceled" and "complete" sections with custom code "Did you cancel your order ? it's fine, you can come again later!".
I have seen that this sections never run.. as if the transaction is completed or canceled i get redirect to the pages i put in the "paypal redirect" section.
When these sections are called?
Thank you
Gianluca


p.s: how can i get the label of a variable?
Example: i have checkbox with name "check"
1=Label1
2=Label2

with {data:check} I get the value of the checked item (example: 2)
how do i get the label? Something like {label:check} that returns Label2 ?

EDIT: looking to the paypal url in debug mode i've seen an error in the URL:

This is private content



Instead of notifyURL or somethign like that we have this:

&cn=¬ify_url=%2Fcomponent%2Fchronoforms6%2F%3Fchronoform%3....

so i think that the problem is here.. paypal can't read so the email can't be send... how can we fix this?
Max_admin 14 Jul, 2017
Answer
1 Likes
Hi Gianluca,

The url is sent correctly but it is not complete, please insert the full url to the ipn url starting with http://...etc OR use this shortcode:
{url.full:ipn}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jabba 14 Jul, 2017
It works! Thank you! Last question:

how can i get the label of a variable?
Example: i have checkbox with name "check"
1=Label1
2=Label2
with {data:check} I get the value of the checked item (example: 2)
how do i get the label? Something like {label:check} that returns Label2 ?

Thank you again,
Gianluca
Max_admin 14 Jul, 2017
Hi Gianluca,

Unfortunately this is not possible "easily", the HTML standard is sending the values but not the labels.

You will need a "switch" action, set the data provider to {data:check} then set the values to:

1:Label 1
2:Label 2

Then you can use {var:switch_name} instead of {data:check}

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 14 Jul, 2017
Hi Gianluca,

I can't read the full URL you posted but the replacement of =notify_url with =¬ify_url looks like a url-encoding problem ( as ¬ => not); I think we've seen this here once before a few years ago but I can’t see the thread at the moment.

I'm not familiar enough with CFv6 to know where this might be changing :-(

The cancelled and completed actions are usually linked to the cancel_url and return_url that you send to PayPal. The user will be returned to the cancel_url if the cancel before purchasing and to the return_url after a successful purchase.

The simplest way to get the labels as values is to set them as e.g. Label1=Label1 - there are other methods in the FAQs.

Bob
jabba 14 Jul, 2017
Sorry, it was a false positive.. i still have problems with mail... no emails are sent, even with {url.full:ipn} .
Can i ask you guys a quotation for the fix? To take a look at the settings and see if everything is allright? I'll be glad to pay for that🙂
Thank you!
GreyHead 15 Jul, 2017
HI GianLuca,

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
jabba 17 Jul, 2017
Thank you everyone, i've temporary solved sending the mails in another part of the setup. It kinda works now, so we are ok. Thank you!
Gianluca
This topic is locked and no more replies can be posted.