php - First payment for reccuring payment on Paypal -
i'm setting recurring paypal payment. i'm not sure understand when first payment done. in case, want first payment done when user subscribe, , automaticaly renew after 3 month. i'm not sure if "initamt" parameter if way that.
moreover, when try set parameter "initamt" in sandbox, résulting profile "pengindprofile"
here parameters :
'method' => 'createrecurringpaymentsprofile', 'token' => $token, 'payerid' => $payerid, 'user' => $user, 'signature' => $signature, 'pwd' =>$password, 'version' => 74.0, 'profilestartdate' => gmdate("y-m-d\th:i:s\z"), 'desc' => 'my subscription', 'billingperiod' => 'month', 'billingfrequency' => '3', 'amt' => 10, 'currencycode' => 'eur', 'payerid' => xxx, 'maxfailedpayments' => 3, 'initamt' => 10
and finale question, how reccuring payment works ? paypal send money on account each 3 month ? possible notification on php serveur update subscription status ?
thanks !
i'd using paypal php sdk instead of trying use rest api directly or via minimal library. sdk provides convenience working service , has plenty of use-case based examples including recurring billing , subscriptions.
Comments
Post a Comment