Errors with PayPal payements

rumen


Gast

two possible problems from my view

#1. wrong settings in your paypal-account - shop administration - but only theory for me, i've never see'n this admin panel there

#2. problems with the domain ending

have you try to talk with the hotline from paypal?

rumen

I tried also http://lystoto.com - same result. Maybe there are some limitation from the host. I don't know. I spoke with the host, but they said there is no any problem from their side. Don't worry with this.

Gast

you get the most information's in the open debug-mode

$debug    = true;

the sandbox is (in simple words) a testbox without payments, you see there the transfer protocolls from and to paypal

normalize, you get a complete protocoll about all your sending datas and also the answer from paypal.
maybe, it is also a problem with the domain-ending "photography"

see also here
https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNTesting/

P.S.: a simple test is a copy from this wb-installation to a different server with a "normal" domain-ending like *.com etc
for this, you have to change the wb-url in config.php and also the shop-url and ipn-url in bakery on the new server

rumen

Quote from: jacobi22 on February 20, 2018, 06:37:55 PM
go into the ipn.php of your payment method and set this variabels (debud && sandbox) step by step to TRUE, then try again

$active   = true;        // IPN on = true, IPN off = false
$debug    = false;       // Enable debug mode
$sandbox  = false;       // Use paypal sandbox
$delay    = false;


i hope, you get there some more informations

QuoteDo you think the problem can appear because by some reason the WB doesn't recognize the domain? For example I couldn't exter the e-mail address in the settings ... the WB doesn't recognize it as e-mail "info@transfer.photography"  - gave me error - this is not valid e-mail address ....

we will check that - but if i look into the code from bakery, the code tell's me, you get no replay from paypal

After I turned on that options

$active   = true;        // IPN on = true, IPN off = false
$debug    = false;       // Enable debug mode
$sandbox  = false;       // Use paypal sandbox
$delay    = false;


in the log file I got:

INVALID
[2018-02-21 12:38 Etc/UTC] INVALID IPN: The transaction is invalid and has not been completed.

Gast

For WB 2.10.x and older

Original-Code in admin/settings/save.php  ~Line 151

Quote$pattern = '/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,6}))$/';

that means: max 6 chars for the domain-name (see red marked place)

remove this number 6 (leave it empty) to use Domain-Name's without limit

here the corrected line
$pattern = '/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,}))$/';

P.S.: WB 2.11 use a new method

crnogorac081

i guess tld is limited to 2 or 3 characters in php chevk function. i would recomend to open your database phpmyadmin and manually in settings table input your email.
Web developer

Gast

QuoteE-mail error in Settings - Admin E-mail - I set e-mail:  info@transfer.photography

see it - give me a minute

rumen

Quote from: jacobi22 on February 20, 2018, 07:13:22 PM
please look into the database from bakery_general_settings and there specially to the shop_email.
is it the exact!!! the same mailadress, what you've write in the input field????

Yes it is the same: info@lystoto.com  as shop e-mail and in Settings - General e-mail - it is the same. 


rumen

E-mail error in Settings - Admin E-mail - I set e-mail:  info@transfer.photography



After "Save" I got:



When I put another e-mail ... info@lystoto.com for example - it works and there is no problems to "Save" it


Gast

please look into the database from bakery_general_settings and there specially to the shop_email.
is it the exact!!! the same mailadress, what you've write in the input field????

Gast

QuoteDo you think the problem can appear because by some reason the WB doesn't recognize the domain? For example I couldn't exter the e-mail address in the settings ... the WB doesn't recognize it as e-mail "info@transfer.photography"  - gave me error - this is not valid e-mail address ....

where do you have this problem??? 

in wb or in bakery (as shop-email)?

we've no problem's, to use a mail like this (with a newer top-level-domain) inside of wb

Gast

go into the ipn.php of your payment method and set this variabels (debud && sandbox) step by step to TRUE, then try again

$active   = true;        // IPN on = true, IPN off = false
$debug    = false;       // Enable debug mode
$sandbox  = false;       // Use paypal sandbox
$delay    = false;


i hope, you get there some more informations

QuoteDo you think the problem can appear because by some reason the WB doesn't recognize the domain? For example I couldn't exter the e-mail address in the settings ... the WB doesn't recognize it as e-mail "info@transfer.photography"  - gave me error - this is not valid e-mail address ....

we will check that - but if i look into the code from bakery, the code tell's me, you get no replay from paypal

rumen

OK I put the address of the shop in settings but same error appeared:


rumen

Do you think the problem can appear because by some reason the WB doesn't recognize the domain? For example I couldn't exter the e-mail address in the settings ... the WB doesn't recognize it as e-mail "info@transfer.photography"  - gave me error - this is not valid e-mail address ....

rumen

Yes the shop is registered in PayPal - Business account. And the 2 test payments payments passed successfully as amounts from my account to the shop account in PayPal.

Quoteis your shop registered in the paypal-administration??

You mean the domain is wrong?

The domain in .photography  - yes it really is. The site is http://transfer.photography  and the site is for "Transfer photo to wood" - Yes it really!!!

QuotePaypal-Page: is the adress of the shop - normalize also registered in your paypal-administration, look there to the correct url and use copy&paste
normalize it is the absolute url to your shop-page

So it should not be the site itself but the shop page! For example this one?

http://transfer.photography/pages/order.php

or the card?

http://transfer.photography/pages/order.php?view_cart=yes





Gast

#7
QuoteFields:
PayPal Page:          (I didn't understand should there be something and what?)
PDT Identity Token:   (I didn't understand should there be something and what?)

Paypal-Page: is the adress of the shop - normalize also registered in your paypal-administration, look there to the correct url and use copy&paste
normalize it is the absolute url to your shop-page
Correction:
but: http://transfer.photography  is not a valid url, no domain-ending

is your shop registered in the paypal-administration??

same problem for the ipn-adress
the script use here your wb-url and build this path automatically in the bakery-payment-settings
you need here also a valid url

rumen

I sent 2 payments with EUR 0.01 and both passed OK. The funds were transferred to the shop account in PayPal. But still I got same error. Maybe I miss something in the settings?



Fields:
PayPal Page:          (I didn't understand should there be something and what?)
PDT Identity Token:   (I didn't understand should there be something and what?)

In Bakery Docs it was written:

Your Identity Token is shown below the PDT On/Off radio buttons. Copy your identity token and paste it to the "PDT Identity Token" field right above the yellow box at Bakeries backend (see "PayPal Settings").


I activate also the COD payment. With COD payment I didn't get any e-mail for the order I did, only the shop received the order. Should I change the version of the Bakery?


Gast

you have to see, how it works in the payment

you send a request to paypal with some datas to pay it. if you pay there for it, paypal (or others) send's a request back to your adress to the ipn.php of this payment method. this ipn.php update the record in the database and set a variable to TRUE. And only if this variable is true, bakery sends the mails and clear the session

use the check_payment.php of your favorite payment method and there the settings for $testing and $sandbox to get more information about the problem

a simple example: if the adress of the back-url to your ipn.php is not correct in your payment settings, it's not possible for paypal to send a success report back to you

rumen

Even COD doesn't work - I don't need COD in this case, but turned on just to see if it works. The module give message on the screen that will send message, but doesn't send e-mails and also the card is not cleared - the item still exist there.


rumen

Also

1. I don't get e-mail message from the site with my order.
2. The e-mail in the site doesn't get by e-mail the order ...
3. The only e-mail is from PayPal just for the payment (in the spam)


rumen


rumen

The payment is done but after the payment I was redirected to page with error message:

ERROR: Payment status or payment method is not defined.

Also after I was redirected to the site I saw that the item and the amount in the "shopping card" still exist!

I use WB 2.10 and Bakery 1.83