Forum
Payment says failed but was sucsessfull
Hi All
My paypal payments keep failing but they not
this is my thank you page
<?php include('../perch/runtime.php');?>
<?php perch_shop_complete_payment('paypal-express');?>
<?php perch_layout('header'); ?>
<?php perch_content('Title Image'); ?>
<div id="caption-pager" class="caption-pager">
<?php perch_layout('pager'); ?>
</div>
<div class="row">
<?php
if (perch_shop_order_successful()) {
echo '<h1>Thank you for your order!</h1>';
perch_form('photoComp.html');
}else{
echo '<h1>Sorry Your Payment Has Failed!</h1>';
} ?>
</div>
<?php perch_layout('footer'); ?>
<?php PerchUtil::output_debug(); ?>
but debug says payment sucsessfull
Hi Anthony
As with your original thread about the same issue we're unable to help because we don't have information from you that enables us to help. This isn't happening to everyone so we need you to go through a debugging process to find out what is triggering that error.
If you can isolate under what conditions the error occurs then we can most likely help, we can't however do that debugging for you.
Rachel
its happening all the time
normal paypal checkout item is £5 login to paypal sandbox make payment i get sent back
debug is green and says payment successful
but the
is not working
Full Debug
This is not happening to everyone who uses PayPal to take payments, so there is something specific in terms of what you are doing. It may be that there is something we can do to make that case easier once we know what the problem actually is, at the moment I have no way of knowing.
We really want to help you, but you do need to be able to get some sort of reduced test case in place to isolate where the problem is happening. If that isn't something you are able to do then you are going to need to get someone to help you who can do that, it's over and above what we can do in free support.
sorry i just dont know how i can be more specific
its every transaction i try
there is only two products and happens with both
i get same result with both sanbox and live paypal
on a live server and wamp
You need to isolate what is happening, there isn't anything we can do with such vague information. We haven't even been able to ascertain if this has anything to do with Perch so far.
Im Creating a fresh website
New Database New Perch Download New Shop Download
hopfully try figure out the issues
Ok so i have created a fresh website
https://myboxproject.co.uk/shop/
New DB Fresh Download files
/shop/index.php
cart.php
checkout.php
payment.php
Thanks.php
Its all per the instructions on the documentation Payments in the debug are successful
but the thanks page says Sorry!
there has to be either a paypal or perch issue here this is by the book fresh setup
Even a new PayPal Sandbox account
I am also discussing this issue with paypal
4th website now
either i cant follow basic documentation or paypal is broken
Ok this worked a few times
rather than
perch_shop_order_successful()
does not take any arguments.