But, using this code, when I made "click" on the button, I get this PayPal message: "Invalid regular period. You must specify valid values for the parameters A3, P3, and T3 for a subscription".
Peopel will pay for 48 hs of access to my course U$S 1 for the first 48 hs or days (is the same), and then they will be charge with an monthly U$S 27.
Here is the long code generated that gives me that error
- Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="xxxxxxxxxx@gmail.com" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://denovatoanetworker.com/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://denovatoanetworker.com/" />
<input type="hidden" name="return" value="http://denovatoanetworker.com/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input type="hidden" name="lc" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="denovatoanetworker.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="Membresia Bronce / description and pricing details here." />
<input type="hidden" name="item_number" value="1" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable ) -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
<!-- Controls Modify Behavior At PayPal® Checkout -->
<input type="hidden" name="modify" value="0" />
<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="27.00" />-->
<input type="hidden" name="src" value="1" />
<input type="hidden" name="srt" value="" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="a1" value="1.00" />
<input type="hidden" name="p1" value="2" />
<input type="hidden" name="t1" value="D" />
<input type="hidden" name="a3" value="27.00" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
The fact is that if I use the short code, all is running well, but I need to use the long code because the integration with WP Affiliate Platform.
Is something wrong with the code? What is happening?
Thank you for your support. Have a nice day