javascript - paypal subscribe html button on mobile site -


i'm trying use paypal's subscribe html button create option mobile web users subscribe services. haven't found says isn't aloud paypal, or searching stackoverflow or google, when try send subscribers (via cmd) "_express-checkout-mobile" instead of "_xclick-subscriptions" told "transaction invalid."

i hope can done because want able use paypal create monthly charge has setup fee including first month (which works "set trial price") , can use javascript/php/forms update price depending upon users selection (or entering price hand house-calls) , send mobile users mobile site.

essentially price , first month charge need variable, , either month-to-month or annual, every transaction... i'm open other ways solve too, want go paypal mobile dynamic subscriber choices. (i have paypay verified business account btw).

example "testing" code php etc.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">  <!-- identify business can collect payments. --> <input type="hidden" name="business" value="robwestx@gmail.com">   <!-- specify subscribe button. --> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <!-- identify subscription. --> <input type="hidden" name="item_name" value="<? echo $_post['my_item']; ?>"> <input type="hidden" name="item_number" value="">  <!-- set terms of trial period (e.g. first month/year setup). --> <input type="hidden" name="currency_code" value="usd"> <input type="hidden" name="a1" value="<? echo $my_total; ?>"> <input type="hidden" name="p1" value="1"> <?   if($_post['onoffswitch']){//monthly or annual  echo '<input type="hidden" name="t1" value="y">';  }else{  echo '<input type="hidden" name="t1" value="m">';  } ?>    <!-- set terms of regular subscription. --> <input type="hidden" name="a3" value="<? echo $my_mo_total; ?>"> <input type="hidden" name="p3" value="1">     <?   if($_post['onoffswitch']){  echo '<input type="hidden" name="t3" value="y">';  }else{  echo '<input type="hidden" name="t3" value="m">';  } ?>   <!-- set recurring payments until canceled. --> <input type="hidden" name="src" value="1"> 

<!-- display payment button. --> <input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_us/i/btn/btn_subscribe_lg.gif" alt="paypal - safer, easier way pay online"> <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_us/i/scr/pixel.gif" > </form> 

i found this, can't mobile version subscription. (paypal standard not redirecting mobile checkout when discount_amount posted)

thanks patrick. solves question.

but wonder why not allow these select types forward mobile optimized "at time." if there different payment method work mobile want (*above) please let me know because frustrating.

if else looking paypal mobile payments standard, or express checkout on mobile, subscriptions answer is:

note: merchants integrated “donate”, “add cart”, or “subscribe” buttons not benefit mobile optimized experience @ @ time. customers continue go through current payment experience on mobile devices.

https://developer.paypal.com/webapps/developer/docs/classic/products/mobile-paypal-payments-standard/


Comments