Submit Multiple Forms With One Button

Have you tried to do it with $.ajax? You can add an foreach, or call another form on the Onsucces function. Another approach is changing all to one form with an array that points to the right “abstract” form: <form action=”” method=”post”> <input type=”text” name=”name[]”> <input type=”text” name=”example[]”> <input type=”text” name=”name[]”> <input type=”text” name=”example[]”> <input … Read more

Dynamic PayPal button generation – isn’t it very insecure?

You should use the PayPal Button API such as below: $sendPayData = array( “METHOD” => “BMCreateButton”, “VERSION” => “65.2”, “USER” => “username”, “PWD” => “password”, “SIGNATURE” => “abcdefg”, “BUTTONCODE” => “ENCRYPTED”, “BUTTONTYPE” => “BUYNOW”, “BUTTONSUBTYPE” => “SERVICES”, “BUTTONCOUNTRY” => “GB”, “BUTTONIMAGE” => “reg”, “BUYNOWTEXT” => “BUYNOW”, “L_BUTTONVAR1” => “item_number=$invoiceNumber”, “L_BUTTONVAR2” => “item_name=$invoiceType”, “L_BUTTONVAR3” => “amount=$invoiceTotal”, … Read more

PayPal Smart Subscribe server side

I’m not aware of a demo sample, but the createSubscription portion can be be done via this API call: https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_create For subscriptions, by default the subscription will be activated automatically on approval, before onApprove is called. You can set the application_context -> user_action to something other than SUBSCRIBE_NOW if you want to show a review … Read more