latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

One-Time Custom Amount Payment

Home Forums Community Forum One-Time Custom Amount Payment

This topic contains 10 replies, has 4 voices. Last updated by  Pacific Zen Institute 4 years, 10 months ago.

Topic Author Topic
Posted: Wednesday Feb 8th, 2012 at 2:16 pm #4484

Hi,

I’m wondering if there is any way for a customer to make a one-time payment of a custom amount that they input (i.e. not a predetermined fee). If so, would such a functionality be possible within the free version or would it require PayPal Pro/s2Member pro? Is there any explanation of this within a tutorial video?

Thank you,
Natalia

List Of Topic Replies

Viewing 10 replies - 1 through 10 (of 10 total)
Author Replies
Author Replies
Posted: Wednesday Feb 8th, 2012 at 11:22 pm #4532
Raam Dev
Username: Raam
Staff Member

Hello Natalia,

Yes, this is possible with both the free version and the Pro version of s2Member.

Please see this thread in the old forum that describes how to accomplish this:
http://www.primothemes.com/forums/viewtopic.php?f=4&t=16566&p=59040#p59040

Posted: Thursday Feb 9th, 2012 at 11:26 am #4636

Thanks so much for the fast response. We’ll definitely be using s2Member!

Posted: Thursday Feb 9th, 2012 at 12:51 pm #4646

Hi, I have two questions that are related to this thread:

1) Can I create this same type of “enter your own amount” button with Authorize.net

2) Could I do it for people who are NOT logged in?

Posted: Tuesday Feb 14th, 2012 at 9:18 pm #5129
Raam Dev
Username: Raam
Staff Member

Yes, this can be done with Authorize.net as well. You can use a technique like the one described here: http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

Posted: Tuesday Feb 28th, 2012 at 5:14 pm #6689

This seems to work for me using the technique described at http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604, but I wondered how I might go about implementing something like the solution here: http://www.primothemes.com/forums/viewtopic.php?f=4&t=16566&p=59040#p59040 that would allow the user to input their own custom amount. Possible with Auth.net?

Posted: Wednesday Feb 29th, 2012 at 12:11 pm #6768
Raam Dev
Username: Raam
Staff Member

You could use the first method that you said worked and simply create an input box with a submit button that uses GET to submit the form to the URL where you display the customized button.

If you have an input box called amount and use:

<form name="purchase" method="get" action="http://example.com/purchase" > 

then when the user submits the form they will be sent to http://example.com/purchase/?amount=10.00, which would then display the checkout button with the dynamically customized price.

Posted: Thursday Mar 1st, 2012 at 10:25 am #6895

That seems to work great. Thanks for your help!

I’m considering using s2 to hack in a way for people to give one-time or recurring donations through s2, rather than managing memberships with s2 and needing to use another plugin altogether for donations (without membership).

I can control whether that custom amount is one-time or recurring but simply changing the “rr” attribute, correct? But I also need to technically give them a membership level. Can I give them a membership level, say 100, but then remove the capabilities of that level? Ideally I want them to be a “subscriber” or “Level 0” member, or at least have the same capabilities as a Level 0 member.

Posted: Thursday Mar 1st, 2012 at 10:42 am #6900

Here’s what my form shortcode looks like, I’m wondering if this would do the trick I’m looking for:

<form name="input" action="http://koaninnovation.org/donate-test" method="get">
Recurring Donation Amount: <input type="text" name="amount" /><br />
<input type="submit" value="Submit" />
</form>

[s2Member-Pro-AuthNet-Form level="4" ccaps="-all" desc="You're donating &#36;<?php echo esc_attr($_REQUEST["amount"]); ?> each month." cc="USD" custom="koaninnovation.org" ta="0" tp="0" tt="D" ra="<?php echo esc_attr($_REQUEST["amount"]); ?>" rp="1" rt="M" rr="1" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="0" /]

I tried using level=”*” but it didn’t seem to want to accept it with only the ccaps=”-all” configuration.

Posted: Friday Mar 2nd, 2012 at 12:15 am #6952
Staff Member

Sorry to butt in here, I just saw this topic and thought I would offer some assistance.

If you set level="*", that indicates to s2Member that you’re selling Independent Custom Capabilities, and there is no specific Membership Level associated with the purchase. Therefore, there needs to be at least one Custom Capability specified in your ccaps="" Attribute.

If you have ccaps="-all", you’re just stating that you want to remove all existing Custom Capabilities (which is fine), but you’ll need to specify also, at least one Custom Capability that you want to sell in this transaction (i.e. you have to sell something, that’s all).

ccaps="-all,music,videos"
Posted: Friday Mar 2nd, 2012 at 11:40 am #7079

Thanks Jason.

Viewing 10 replies - 1 through 10 (of 10 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.