Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refunds not implemented #25

Closed
Cornoud opened this issue Mar 29, 2016 · 15 comments
Closed

refunds not implemented #25

Cornoud opened this issue Mar 29, 2016 · 15 comments

Comments

@Cornoud
Copy link

Cornoud commented Mar 29, 2016

Refunds initiated from Adyen are not implemented. Code is quoted.
Also when buildign this function emailing the credit email to the customer should NOT be depending on orderupdate email setting but on a seperate setting (allow sent refund emails)

@rikterbeek
Copy link
Contributor

Hi Cornoud,

Refunds are implemented and not quoted. See here:
https://github.com/Adyen/adyen-magento2/blob/develop/Model/Method/Cc.php#L357-L372

We do not send email for a credit memo this is native Magento functionality.

Regards,
Rik
Adyen

@Cornoud
Copy link
Author

Cornoud commented Mar 30, 2016

Hi Rik,

Within https://github.com/Adyen/adyen-magento2/blob/master/Model/Cron.php the function _refundOrder is quoted.
Also the refund is only emailed when send_update_email is enabled. This setting is also used for other emails within Adyen module which in most cases are not desired to be sent to the customer.

[cid:image001.png@01D18A74.36ECC0E0]

Kind regards,

Cornoud

From: Rik ter Beek [mailto:notifications@github.com]
Sent: Wednesday, March 30, 2016 9:10 AM
To: Adyen/adyen-magento2
Cc: Cornoud van Sprundel
Subject: Re: [Adyen/adyen-magento2] refunds not implemented (#25)

Hi Cornoud,

Refunds are implemented and not quoted. See here:
https://github.com/Adyen/adyen-magento2/blob/develop/Model/Method/Cc.php#L357-L372

We do not send email for a credit memo this is native Magento functionality.

Regards,
Rik
Adyen


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-203283264

@Cornoud
Copy link
Author

Cornoud commented Mar 30, 2016

Hi Rik,

When will the master branch be updated with the latest fixes?

Kind regards,

Cornoud

@rikterbeek
Copy link
Contributor

Hi Cornoud,

This is because you need to do the refund from inside Magento.
If you do an online credit memo in magento it will automatically do a refund call to our platform.

Regards,
Rik
Adyen

@rikterbeek
Copy link
Contributor

Hi Cornoud,

the send_update_email is not a setting from us and if I look into code from Magento2 the setting is absolute. https://github.com/magento/magento2/blob/develop/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php#L1764

Regards,
Rik
Adyen

@Cornoud
Copy link
Author

Cornoud commented Mar 30, 2016

Hi Rik,

So support for refunds made in Adyen is dropped in M2?

Not all customers will do the refund from Magento.
Some of our customers do the refund from Adyen.

Kind regards.

Cornoud

From: Rik ter Beek [mailto:notifications@github.com]
Sent: Wednesday, March 30, 2016 11:21 AM
To: Adyen/adyen-magento2
Cc: Cornoud van Sprundel
Subject: Re: [Adyen/adyen-magento2] refunds not implemented (#25)

Hi Cornoud,

This is because you need to do the refund from inside Magento.
If you do an online credit memo in magento it will automatically do a refund call to our platform.

Regards,
Rik
Adyen


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-203341672

@rikterbeek
Copy link
Contributor

Hi Cornoud,

Why is it not done through Magento ? In Adyen partial refund is going to be diffecult to do because you do not know what items are refunded. For M1 we get the questions from merchants asking to not update magento if you do a refund on Adyen so that is why it is not included.

Regards,
Rik
Adyen

@Cornoud
Copy link
Author

Cornoud commented Mar 30, 2016

Hi Rick,

I do agree the best solution is thru magento, this what I advise to all my customers.
But I still do not like removing functionality which is present in most/all PSP implementations.

About 30% of ISM customers is still creating the refund in Adyen backoffice.
And using Magento for sending the credit email.
Reason for doing this in Adyen

  •      Fulfillment such as shipments and credits within Magento,
    
  •      Direct link between ERP and Adyen
    
  •      Manual processing by Financial employee without access to Magento
    

Kind regards,

Cornoud

From: Rik ter Beek [mailto:notifications@github.com]
Sent: Wednesday, March 30, 2016 13:42 PM
To: Adyen/adyen-magento2
Cc: Cornoud van Sprundel
Subject: Re: [Adyen/adyen-magento2] refunds not implemented (#25)

Hi Cornoud,

Why is it not done through Magento ? In Adyen partial refund is going to be diffecult to do because you do not know what items are refunded. For M1 we get the questions from merchants asking to not update magento if you do a refund on Adyen so that is why it is not included.

Regards,
Rik
Adyen


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-203391439

@rikterbeek
Copy link
Contributor

Hi Cornoud,

Let me have a look this week it should not be hard to implement.

Regards,
Rik
Adyen

@rikterbeek
Copy link
Contributor

Hi Cornoud,

It is difficult to realize this because of the protected function they have introduced for prepareCreditMemo. There is a method called registerRefundNotification that is public but there is a bug in this call see: magento/magento2#2656

Regards,
Rik
Adyen

@Cornoud
Copy link
Author

Cornoud commented Mar 31, 2016

Hi Rik,

I would suggest not building the functionality for the moment.

Thx,

Cornoud

From: Rik ter Beek [mailto:notifications@github.com]
Sent: Thursday, March 31, 2016 13:43 PM
To: Adyen/adyen-magento2
Cc: Cornoud van Sprundel
Subject: Re: [Adyen/adyen-magento2] refunds not implemented (#25)

Hi Cornoud,

It is diffecult to realize this because of the protected function they have introduced for prepareCreditMemo. There is a method called registerRefundNotification that is public but there is a bug in this call see: magento/magento2#2656magento/magento2#2656

Regards,
Rik
Adyen


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-203893604

@rikterbeek
Copy link
Contributor

Hi Cornoud,

We will wait until there is a proper solution available in magento2.

Regards,
Rik
Adyen

@alessandroniciforo
Copy link
Contributor

@rikterbeek it looks like 2656 has been fixed. Maybe this issue can be solved now?

@rikterbeek
Copy link
Contributor

Hi @alessandroniciforo,

Sorry for the late reply missed your comment. Thanks for letting us know. We highly advise you to do refunds directly form inside Magento because of extra functionality as option to put back in stock and partial refunds of particular products. Is there a reason why you can't use this inside Magento ?

Regards,
Rik
Adyen

@alessandroniciforo
Copy link
Contributor

@rikterbeek at this stage, we're just exploring all the different functionalities and while trying to issue refunds from Adyen backend I stumbled upon this commented piece of code with the reference to issue #2656 on Magento, so I thought of updating this issue.
I think we should be fine doing it inside Magento.
Thanks,
Alessandro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants