Closed (fixed)
Project:
Webform Paypal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2011 at 21:04 UTC
Updated:
19 Jan 2012 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
avr commentedThis patch adds the ability to select between a "Buy Now" and "Donate" button.
Perhaps a better method would be to provide a textfield and allow users to enter a hosted image from this page: https://ppmts.custhelp.com/app/answers/detail/a_id/632
Comment #2
avr commentedActually, here is another location to find button images: http://www.rocketgranny.com/codeclips/pp_button_images.php
Comment #3
mrf commentedComment #4
mrf commentedJust wanted to let you know that I will be totally swamped until after Badcamp, but I'll definitely have some time again next week to check this and your other new feature.
Thanks for the great additions to the module.
Comment #5
ashedryden commentedTested patch against 7.x-1.0 and failed.
Hunk #1 FAILED at 34.
Hunk #2 succeeded at 56 (offset -11 lines).
Hunk #3 FAILED at 190.
Hunk #4 succeeded at 159 with fuzz 2 (offset -116 lines).
Comment #6
mrf commentedPatch failed for me as well.
Looking at the patch and the provided link with all the images, I think there is a more flexible way we could do this, and make it easier to change if Paypal decides to move things around.
So each button has three types, small, large, and large wtih cc logos, if we include the right prefix we can also easily internationalize these (all the languages follow the same URL structure).
To me the most important buttons are 'Buy Now' 'Donate" and 'Subscribe' which should all come for "free" with a standard paypal account. Someone who regularly uses paypal correct me here if I'm wrong.
So instead of a button_get function I'd like to see a button_build function that takes type, style, and language as parameters and returns a well formed link.
Comment #7
mrf commentedHere is a patch for button types. This definitely needs some testing but should be working as is.
Comment #8
Anonymous (not verified) commentedI tested the above patch and it worked, however I then made a few changes (e.g. I got the default values working properly, grammar tweaks, etc.).
Comment #9
mrf commentedCommitted to 7.x-1.x dev thanks for all the help and reviews.