Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We need paypal wps refund functionality similar to the one implemented on commerce_be2bill. We would also need it to have the partial refund functionality.
Comment | File | Size | Author |
---|---|---|---|
#16 | allow_paypal_wps-1982294-16.patch | 43.06 KB | jsuchogorskafp |
#16 | interdiff_15_16.patch | 2.14 KB | jsuchogorskafp |
#15 | allow_paypal_wps-1982294-15.patch | 43.26 KB | fpalewacki |
#15 | allow_paypal_wps-1982294-15.patch | 43.26 KB | fpalewacki |
#15 | interdiff_14_15.patch | 2.59 KB | fpalewacki |
Comments
Comment #1
olteanu5000 CreditAttribution: olteanu5000 commentedAttached patch with desired functionality. Inspired by paypal wpp module and commerce_be2bill module.
Comment #2
olteanu5000 CreditAttribution: olteanu5000 commentedComment #3
vasikeLet's move this one to the current (2.x) version of the module.
patch re-rolled.
Also re-titled, the patch includes also the Capture option for Authorized payments.
Comment #4
vasikeit seems it needs more work.
Comment #5
vasikeThere is a new patch for this - it is a re-work of the previous one.
I added also the Void option to the Pending payments.
Comment #6
vasikeit seems there some more work needed for Refund, some changes to WPS IPN process for refunds.
there is an updated patch for this.
Comment #7
vasikethere is a new patch that completes the solution for this with Rules integration:
Rules Actions available for Capture/Refund/Void.
This means it could also used with VBOs (Rules components).
Comment #8
YurkinPark CreditAttribution: YurkinPark at Skilld commentedThanks for the patch. As i discovered, this patch can be implemented for 7.x-2.3 as well.
I found one issue after implementing this patch. Sometimes, PayPal doesn't authorize payment, and returns
instead of
This means you have not provide service/ship merchandise. Check in official documentation https://developer.paypal.com/docs/classic/express-checkout/integration-g... . My patch implements previous (7th) patch and provides tools which you can use to cover "payment under review" case.
Comment #9
YurkinPark CreditAttribution: YurkinPark at Skilld commentedIn case we have many failed transaction before, sometimes i'm obtaining non last transaction (which is paypal transaction). Added condition to match payment method commerce_paypal_wps_check_ipn_pending_reason rule condition callback.
Comment #10
rszrama CreditAttribution: rszrama at Centarro commentedNew functionality targets the -dev version, even if the patch applies cleanly on prior point releases. However, it isn't clear to me why you disabled a FALSE return value in the IPN validation function. That seems ... quite drastic to have no explanation. : P
Comment #11
ruvenshilpakar CreditAttribution: ruvenshilpakar commentedHi,
I tried this patch but when i try to complete the checkout and get redirected to the paypal account page, i get an error and nothing happens. What could i be doing wrong? I used the#9 patch
Comment #12
lathanReroll patch against 7.x-2.x and - added a comment as to why 'disabled a FALSE return value in the IPN validation function'.
Comment #13
lathanfix incorrect path in last patch
Comment #14
Ronino CreditAttribution: Ronino as a volunteer commentedI could only test refunds via the sandbox and it mostly works, great! When I do a partial refund first though and then want to refund the remainder, I get these errors:
I enhanced #13 to fix this.
Comment #15
fpalewacki CreditAttribution: fpalewacki commentedHey, I've fixed a couple of issues and typos and improve multi currency support to get the proper errors returned from PayPal if we created a transaction in a different currency.
Refund request was not sending the currency parameter so if you used different currency in commerce than in PayPal then the transaction would have different currency than the request sent to PayPal resulting in e.g. issuing the "3 EUR" refund but in USD
This ticket is kinda old, I'm on "7.x-2.7" version
Comment #16
jsuchogorskafp CreditAttribution: jsuchogorskafp commentedI've fixed issue about order balance, when refund was did from paypal.
Refund from paypal got a confirmation with the e.g "0 EUR", so the order balance does not change.
Refund from platform got confirmation with correct amount and order balance changed.