Joomla - ChronoForm: Submit action based on user selection - php

I am new to Joomla and Chronoform.
Site is integrated with chronoform 5 and it accepts payment via paypal pro and check. User has option to select paypal or check for payment as shown below
I have completed payment through paypal onsubmit. But if use selects check it should not process payment and also it should give different display message. How I can integrate both ? Please suggest.

You can use an Event Switcher action after the form submits to redirect to different pages for the different payment methods.
Please see this FAQ for an example of using the Event Switcher.

Related

Using Typeform for making product orders and paying with PapPal

I am making a Typeform as an order form for my product that has a lot of customization so Typeform is perfect for it, however Stripe payments are not available in my country. Does anyone have experience with integrating Paypal into Typeform order form? Possibly by using page redirect and then passing the price to the paypal payment button and somehow linking the form submission ID with the payment ID?
Or are there any other services like Typeform that are so easy to use and look great?
Thank you for any help / suggestions
I think the best option in your case would be using the redirect after submit feature.
If you're using Typeform as an order form then probably you're using the calculator feature to get the final price, so you have some kind of PRO account. I'm not sure how the PayPal API works, but if you use redirect after submit (in the form settings) then you can add the calculated "score" (price) as a querystring there.
For details on how to set it up, checkout Typeform's help center
Quill Forms has a native integration with Paypal and supports subscriptions as well.

In magento 2 How to redirect after checkout to a link and done payment and land on sucess page

In magento2, How to redirect after checkout to a link and do payment and land on success page if payment success. if payment failed or cancelled then it will land on failure or cancel page. I am new to Magneto and I'm working on magento2 to develop payment gateway.I'am stuck on front end.When user select PLACE ORDER then it post all data to particular link after transaction done it will land on magento2 page. Please suggest no official doc for magento2.
i found this link https://github.com/magento/magento2/issues/2241
it says that the redirection should be implemented client-side so what you need to do is
create a config provider to load the destination url
bind the "proceed" button of your payment method to some custom redirect action
implement the redirect action via js, using the config provider
look at the paypal express implementation for details, this can be found here: Paypal Express JS

Any possible in paypal Auto redirect using php

If there are any possible to redirect paypal without click "Return to Store" Link using php script? Not in paypal Account. using only PHP script or JavaScript.
Because I am sending more parameters in thanks page url.
Please Advise.
Thanks
With Website Payments you can.
To set up Auto Return:
Log in and click the Profile subtab under My Account.
Click the Website Payment Preferences link under Selling Preferences.
Click the On radio button to enable Auto Return.
Enter the Return URL. Note: You must meet the Return URL requirements in order to set up Auto Return.
Docs here
With standard payment buttons or a basic HTML checkout you'll have to rely on their auto-return system or the user clicking the link.
If you want more control over that you can use the Express Checkout API, in which case the user is always guaranteed to return to your site prior to completing the checkout flow so you can handle any pre or post payment processing within that flow directly.
Since you're working with PHP I'd recommend taking a look at my class library for PayPal. It will make this a breeze for you, and if you need help getting setup I can offer 30 min of free training, which is generally more than enough to get you familiar with the library and integrating pretty much any PayPal API you want into your project(s).

Paypal subscription button

Background
I'm building a website where I need to use some sort of recurring billing payment method. My client does not have Paypal's Website Payments Pro so he decided to use a simple Subscribe button.
Problem
This is all nice and easy to use but how would I get a notification from Paypal when such a payment has been made? I had some experience with Paypal before and there was a field return_url that would be accessed by Paypal to notify the website but checking the variables on their site this field does not exist anymore or perhaps not available with this type of button.
when you create subscribe button that time you will find that option(in step 3) , so according your need you can set url and get ipn variable
Step 3: Customize advanced features (optional)
Take customers to this URL when they cancel their checkout
http://yourwebsite/complete_registration.php?action=cancel&sts=0
Take customers to this URL when they finish checkout
http://yourwebsite/complete_registration.php
Advanced variables
notify_url=http://yourwebsite/complete_registration.php
i hope it help you

Paypal Website Payments Standard with dynamic Amount

I have a scenario where a user can input the amount he wants to be billed. I use buynow buttons that are created using code. Now in this case what what i had in mind was to:
Set minimum billing amount to 10$
If he enters below that, give error.
Set the amount of buynow button 10$ when form loads.
Once User inputs a number greater than 10 do an ajax request to controller
Check if their is a button saved in DB against that amount that was created earier on PayPal.
If button does not exist, create a new one on PayPal, save button in the DB.
Return the HTML of the newly created button
Replace the existing button with the returned HTML
Problem with this approach is that it might be too heavy. I also do not want to spread form over 2 pages. Are there any alternate and better options? Can i do some tweaks to make this option more robust?
A better option in this case would be to use the API and do the payments via either Express or Payments Pro. Essentially, you're trying to over-complicate this by making the buttons to the job of the API; getting the worst of both worlds in the process.
You could still utilize a "pay now" button graphic, but just submit your own request to the paypal express gateway (exactly what the button does for you) with a couple curl commands.
There are many tutorials available, but PayPal provides PHP code and a complete walkthrough on their site, so best, in my opinion, to go right to the source.
Log into PayPal -> Merchant Services -> Express Checkout
Under "Setting it up", you'll find all the implementation details.

Categories