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.

Encrypt PHP paypal button code

Home Forums Community Forum Encrypt PHP paypal button code

This topic contains 5 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 1 month ago.

Topic Author Topic
Posted: Monday Dec 3rd, 2012 at 1:27 pm #33326
ines
Username: ines

Hi,

Is there a way of encrypting the PHP PayPal button code? I’m not using the shortcode because I need to customize the button’s style further, i.e. its value (can’t use an image because of the translating plugin I’m using).

Thanks!

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday Dec 5th, 2012 at 9:00 am #33550

Is there a way of encrypting the PHP PayPal button code?

Ines, what do you mean by the PHP button code? Do you mean this? [hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Membership Level # Buttons -> Resulting PayPal® Button Code[/hilite]

If you use that in your post, then it doesn’t get encrypted by s2Member, since it doesn’t go through s2Member before showing up in your page. The shortcode’s output can be encrypted if you enabled encryption, though. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Encryption[/hilite]

I’m not using the shortcode because I need to customize the button’s style further, i.e. its value

Maybe this helps: Knowledge Base » Using variables in a shortcode

Posted: Wednesday Dec 5th, 2012 at 10:49 am #33571
ines
Username: ines

Thank you both for answering.

Ines, what do you mean by the PHP button code? Do you mean this? Dashboard -› s2Member® -› PayPal® Buttons -› Membership Level # Buttons -> Resulting PayPal® Button Code. If you use that in your post, then it doesn’t get encrypted by s2Member, since it doesn’t go through s2Member before showing up in your page.

That’s exactly what I was asking. Makes sense…

Maybe this helps: Knowledge Base » Using variables in a shortcode

Thanks for that. What I’m trying to do is use a button instead of an image, which I could manage to do with the PayPal Button Code. For example:

<form>
...
<input type="submit" id="button" class="button" value="Pagar con PayPal" />
</form>

Not sure I fully understood the logic behind the example you gave me :S Do you think it’s possible to achieve this?

Posted: Wednesday Dec 5th, 2012 at 11:21 am #33576

I suggested the variable shortcode attributes because you mentioned changing the amount.

What you could do to change the input type from image to button, if all your buttons will be that way, is edit the template for the button. s2member\includes\templates\buttons\paypal-checkout-button.php

Remember you’d have to reapply this after each s2Member update you do.

I hope it helps. :)

Posted: Wednesday Dec 5th, 2012 at 11:44 am #33577
ines
Username: ines

That helped, thank you! :)

  • This reply was modified 4 years, 1 month ago by  ines.
Posted: Thursday Dec 6th, 2012 at 5:43 am #33675

Cool. :)

Viewing 5 replies - 1 through 5 (of 5 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.