Hi,
The button can be coded manually - it is just a form.
What is more complex is processing the IPN that PayPal sends back.
Even if it is a service that you are creating the button for, you'll have to ask yourself if you need to validate the IPN before considering the transaction valid and taking any action?
If so, you can use the paypal_processer tag for doing this painlessly for you.
Suppose your service is named 'my service' has three pricing options - Platinum, Gold and Silver.
What you can do is create a template named, for example, my_service.php and define within it the pp_price editable region required by paypal_button. Place the paypal_processor tag in this template also. Make the template clonable and create three cloned pages -one for each pricing options. You can name the pages as my-service-platinum, my-service-gold etc. Fill the pricing for each page.
What we can now do is list the three pages in a table on any other page
This way we can use the paypal_processor tag to validate every transaction.
Please let me know if this helps.
The button can be coded manually - it is just a form.
What is more complex is processing the IPN that PayPal sends back.
Even if it is a service that you are creating the button for, you'll have to ask yourself if you need to validate the IPN before considering the transaction valid and taking any action?
If so, you can use the paypal_processer tag for doing this painlessly for you.
Suppose your service is named 'my service' has three pricing options - Platinum, Gold and Silver.
What you can do is create a template named, for example, my_service.php and define within it the pp_price editable region required by paypal_button. Place the paypal_processor tag in this template also. Make the template clonable and create three cloned pages -one for each pricing options. You can name the pages as my-service-platinum, my-service-gold etc. Fill the pricing for each page.
What we can now do is list the three pages in a table on any other page
- Code: Select all
<cms:pages masterpage='my_service.php'>
<h2>Option: <cms:show k_page_title /></h2>
<h4>Pricing: <cms:show pp_price /></h4>
<cms:paypal_button />
</cms:pages>
This way we can use the paypal_processor tag to validate every transaction.
Please let me know if this helps.