Post by ashon » Tue Jun 20, 2017 10:58 pm

ok so when i make payment it works fine on paypal and site side but when i go to the orders and click on issue refund i get this error

http://prntscr.com/fm14fk

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by ashon » Tue Jun 20, 2017 11:04 pm

Update when i refresh when im on the error page i get a message saying the the refund has been already issued and i check paypal and it has refund but its not instant it was a echeck and says pending

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by ashon » Sat Jun 24, 2017 6:30 am

bump

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by artcore » Sat Jun 24, 2017 2:54 pm

Hi,
Did you upgrade? Somewhere down the oc2.x the database column changed from parent_transaction_id to parent_id in paypal_order table.
You might find a fix on the github pages, just do a search for 'parent_id'
GITHUB BUG TRACKER: https://github.com/opencart/opencart/issues

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by ashon » Tue Jun 27, 2017 1:24 am

artcore wrote:
Sat Jun 24, 2017 2:54 pm
Hi,
Did you upgrade? Somewhere down the oc2.x the database column changed from parent_transaction_id to parent_id in paypal_order table.
You might find a fix on the github pages, just do a search for 'parent_id'
GITHUB BUG TRACKER: https://github.com/opencart/opencart/issues
i have check this and this is what my database column is - http://prntscr.com/foesef

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by artcore » Tue Jun 27, 2017 2:24 am

You didn't mention if you upgraded.
Now, make sure your paypal controller and model are referencing the correct column. Change to parent_id where needed. Check the error log for the filename in question

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by ashon » Tue Jun 27, 2017 2:42 am

artcore wrote:
Tue Jun 27, 2017 2:24 am
You didn't mention if you upgraded.
Now, make sure your paypal controller and model are referencing the correct column. Change to parent_id where needed. Check the error log for the filename in question
No sorry i did not upgradem, i just installed 2.3.0.2

i have checked over the files and everything seems to match
also added my pp_express.php

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by artcore » Tue Jun 27, 2017 4:31 am

From your first post it seems the error is in the model. Check that file!

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by ashon » Tue Jun 27, 2017 5:09 am

checked that to still all the same parent_id not 'parent_transaction_id'

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by artcore » Tue Jun 27, 2017 3:15 pm

I found it in admin>controller>extension>payment>pp_express.php line 703

Attachments

Screenshot_2017-06-27-09-12-20.jpg

Screenshot_2017-06-27-09-12-20.jpg (523.07 KiB) Viewed 1879 times


Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by ashon » Tue Jun 27, 2017 10:42 pm

artcore wrote:
Tue Jun 27, 2017 3:15 pm
I found it in admin>controller>extension>payment>pp_express.php line 703
ok that seemed to work great, but there is an other issue when people pay me its instant but when i refund on the admin cpanel its refunds as echeck

and the payment is pending - http://prntscr.com/fos0jd

im not 100% why this is happening but my default currency on paypal is GBP but on my store its USD would this do this

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by ashon » Tue Jun 27, 2017 10:43 pm

and as its makes the refund pending the status of the order does not change

Active Member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by artcore » Tue Jun 27, 2017 11:16 pm

I've never used refunding myself so I wouldn't know in practice how it's supposed to work. But you can always refund inside Paypal and change the order status in your shop admin to 'refunded' manually as well.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 94 guests