Customise PayPal Payment Page
So, here is how to specify a PayPal payment page style within VB. Search for "subscription_payment_paypal" in templates Then customise/edit the file : Code:
<vb:if condition="$show['recurring']"> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <vb:else /> <input type="hidden" name="cmd" value="_xclick" /> </vb:if> <input type="hidden" name="business" value="{vb:raw settings.ppemail}" /> <input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}}" /> <input type="hidden" name="item_number" value="{vb:raw item}" /> <input type="hidden" name="currency_code" value="{vb:raw currency}" /> <vb:if condition="$show['recurring']"> <input type="hidden" name="a3" value="{vb:raw cost}" /> <input type="hidden" name="p3" value="{vb:raw timeinfo.length}"> <input type="hidden" name="t3" value="{vb:raw timeinfo.units}"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <vb:else /> <input type="hidden" name="amount" value="{vb:raw cost}" /> </vb:if> <input type="hidden" name="no_shipping" value="{vb:raw no_shipping}" /> <input type="hidden" name="shipping" value="0.00" /> <input type="hidden" name="return" value="{vb:raw vboptions.bburl}/{vb:raw vboptions.forumhome}.php" /> <input type="hidden" name="cancel_return" value="{vb:raw vboptions.bburl}/{vb:raw vboptions.forumhome}.php" /> <input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/payment_gateway.php?method=paypal" /> <input type="hidden" name="custom" value="{vb:raw userinfo.username}" /> <input type="hidden" name="no_note" value="1" /> <vb:if condition="$show['notax']"> <input type="hidden" name="tax" value="0.00" /> </vb:if> Code:
<input type="hidden" name="page_style" value="YOURPAGESTYLE"> Code:
<vb:if condition="$show['recurring']"> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <vb:else /> <input type="hidden" name="cmd" value="_xclick" /> </vb:if> To find the pagestyles on PayPal first login to your paypal account then : Click on profile (as in the picture) then "Custom Payment Pages" Click image for larger version Name: Then you can add a new payment page and call it what you want. The name you choose should be used as the Code:
<input type="hidden" name="page_style" value="YOURPAGESTYLE"> Adding this extra option to your PayPal payment page in VB allows you to to use the same email address for different payment sources. i.e. Multiple instances of VB etc. Its a bit basic (I'm new to VB) however I hope someone finds it useful. JUST ADDED as requested. Here is a screen shot of the header that is show once you customer clicks through to payapl. Notice the header is not the default one from paypal. Download No files for download. Screenshots |