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.
Description: Staff role created a Donation Campaign.
1) As a donor, went to donation campaign and entered $1, then clicked on Donate Now.
2) Was taken to Paypal sandbox, entered info for cc payment. Donation total entered: 1.00 (One Dollar)
3) Went back to check on the donation on the Donations Received tab of the Donation Campaign, and find my donation, but the site lists it as a donation of $100.00 (One Hundred Dollars)!
4) Checked the Paypal sandbox confirmation page, which says donation of One Dollar.
Somehow it multiplied my one dollar donation by 100 in the site's Donations Received.
Comments
Comment #1
skjalf CreditAttribution: skjalf commentededit title for more clarity
Comment #2
seanberto CreditAttribution: seanberto commentedIssue is that Views does not convert back from cents to dollars....
Comment #3
seanberto CreditAttribution: seanberto commentedFixed with:
sean@sean-larkins-macbook:~/git/watershednow/drupal/sites/all/modules/contrib-patch$git commit -am "Fixing issue in http://drupal.org/node/960616#comment-3662200"
[master fca2028] Fixing issue in http://drupal.org/node/960616#comment-3662200
5 files changed, 99 insertions(+), 6 deletions(-)
create mode 100644 drupal/sites/all/modules/contrib-patch/simple_payments-int_to_decimal-960616.patch
Comment #4
seanberto CreditAttribution: seanberto commentedChanging title to queue up for retesting.
Comment #5
seanberto CreditAttribution: seanberto commentedComment #6
seanberto CreditAttribution: seanberto commentedComment #7
seanberto CreditAttribution: seanberto commentedComment #8
seanberto CreditAttribution: seanberto commentedI'd still like to get another set of eyes on this, testing 1.5, 10.5, 100 donations. I've checked and it seems to work. but pretty critical, so worth getting another set of eyes on this.
Comment #9
seanberto CreditAttribution: seanberto commentedComment #10
skjalf CreditAttribution: skjalf commentedThe major multiplication bug seems to be fixed. The amounts display correctly within the site but are not $DD.CC format (WSN displays least amount of decimals possible), however the math is right and the amounts match up.
Here's how it shows up-- value entered into WSN original donation page, value displayed on PayPal, and value displayed back on WSN. Passing it back to @seanberto for review and closing if this is acceptable.
Comment #11
seanberto CreditAttribution: seanberto commentedNot great, but okay for now. Really, we need more patches to Simple Payments.
Passing back to you to test the values presented in the Excel export.
Comment #12
skjalf CreditAttribution: skjalf commentedExcel files download accurately with the values stored by Watershed Now (decimals rounded... i.e., $10.5, $100, etc) as shown above.
I think we can close? It looks like it is working as we expect. (Also, if that RTBC tag was the wrong one to assign.. sorry)
Comment #13
seanberto CreditAttribution: seanberto commentedCool. Closing. Wheew, I'm glad my patch to simple payments worked....