Form action code getting stripped out

12 years 9 months ago #168916 by nant

darbunderscore wrote:

nant wrote: how is it unique?


It is unique in the sense that the button links back to that user's paypal account.
What my intention is, is that vistors to that user's profile can click on the paypal button to pay for whatever that user is selling. So each user needs a PayPal account and then has to create the button which generates the code. Then they need to paste that code into their CB profile. Even if the user couldn't do it and it would require an admin to place the code into their profile, that would be okay.


Please give me an example so I can comment.

Please Log in to join the conversation.

12 years 9 months ago #169163 by darbunderscore
Replied by darbunderscore on topic Re: Form action code getting stripped out
Hi nant, I was able to work around the problem using Modules Anywhere, which allowed me to create a HTML module with the code and then call it within a text editor CB field. Since I wasn't entering the code directly, it worked as expected. Here is the code for your reference. The only part getting stripped out is
action="https://www.paypal.com/cgi-bin/webscr"
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
	<input name="cmd" type="hidden" value="_s-xclick" />
	<table>
		<tbody>
			<tr>
				<td>
					<input name="on0" type="hidden" value="Reading Length" />Reading Length</td>
			</tr>
			<tr>
				<td>
					<select name="os0"><option value="15 Minute Reading">15 Minute Reading $35.00</option><option value="30 Minute Reading">30 Minute Reading $60.00</option><option value="60 Minute Reading">60 Minute Reading $120.00</option></select></td>
			</tr>
		</tbody>
	</table>
	<input name="currency_code" type="hidden" value="USD" /> <input name="encrypted" type="hidden" value="-----BEGIN PKCS7-----MIIIGQYJKoZIhvcNAQcEoIIICjCCCAYCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCVJACkN7E2bUPELbkjUMOke+Sg+CQUTgxc5musRR9aOg165Wmt9aELwiqz92qlsxLpcfy3nHmvo8N7ShpP0YhebPehgk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0BCQUxDxcNMTEwNzA1MDM0MzAxWjAjBgkqhkiG9w0BCQQxFgQUHuNaAuhNjMbWdqUfUY+SgPAbzQowDQYJKoZIhvcNAQEBBQAEgYBKewQNE+e0eXqAkzr2HIYEgPdhiDbWKxWWN4wcbxmmmsw3fEbB/0SGLc5zX1DkG4L7hVax7kgTc4/BxsGsxNpnOq+zdtGrVK9kY3pt5j/2b3I3ZDX9dIV/CkOIkT9aHb4jMTce8uKqAZz86H97ZMp+tZKGVC8Kbfa6D4ztXKitMg==-----END PKCS7-----
" /> <input alt="PayPal - The safer, easier way to pay online!" border="0" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" type="image" /> <img alt="" border="0" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" /></form>

Please Log in to join the conversation.

12 years 9 months ago #169169 by nant
Question remains unanswered in my mind - tell me which part of the posted code changes per user?

Please Log in to join the conversation.

12 years 9 months ago #169218 by darbunderscore
Replied by darbunderscore on topic Re: Form action code getting stripped out

nant wrote: Question remains unanswered in my mind - tell me which part of the posted code changes per user?


Sure, it's would be the product list here:
<select name="os0"><option value="15 Minute Reading">15 Minute Reading $35.00</option><option value="30 Minute Reading">30 Minute Reading $60.00</option><option value="60 Minute Reading">60 Minute Reading $120.00</option></select></td>
which would be different per person as well as the meat of the button which is the encoded PKCS7 string. That string make a secure connection to the user's paypal account. That string would be different for every user.

Please Log in to join the conversation.

12 years 9 months ago #169228 by nant
So the "60 Minute Reading", 60 Minute Reading $120.00 parts are user specific?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.214 seconds

Facebook Twitter LinkedIn