# Flash paypal button

**URL:** <https://forum.kirupa.com/t/flash-paypal-button/209437>\
**Category:** flash\
**Created:** [December 8, 2006, 7:54pm UTC](https://forum.kirupa.com/t/flash-paypal-button/209437 "2006-12-08T19:54:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniuk](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@antoniuk](https://forum.kirupa.com/u/antoniuk)\
**Post date:** [December 8, 2006, 7:54pm UTC](https://forum.kirupa.com/t/flash-paypal-button/209437/1 "2006-12-08T19:54:18Z")

</div>

I have a simple button linking to paypal from an html form and I want to place this button into Flash. I found an example that was posted a while back but it didn’t seem to work. Basically the button goes to a url but it also has to send some other info as well with the POST method including an encrypted value. Here is what I have tried. Also note that I have deleted some of the Encryption value for this posting for security reasons.

on (release) {  
var pp\_lv=new LoadVars();  
pp\_lv.cmd="\_s-xclick";  
pp\_lv.encrypted="-----BEGIN PKCS7-----MIIG/QYJKoZIhvGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCSPDaF/KjciWI5MpzIoc/cvgSLU1DQRiQ=-----END PKCS7-----";  
pp\_lv.send(“[https://www.paypal.com/cgi-bin/webscr","\_blank","POST](https://www.paypal.com/cgi-bin/webscr)”);  
}
