Please post all pre-sales questions of all products on this forum

Payment Form: Supported Features

  • Eileen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 5 months ago #132717 by Eileen
Payment Form: Supported Features was created by Eileen
Can Payment Form:

1) Enable me to set the "Paypal Email" before the form is processed? Can I pass that to the form URL in a query param or otherwise set it via PHP (i.e. using any of a number of Joomla extensions that allow one to execute php/Javascript code)? If not out-of-the-box can you point me to a code snippet I could work with to support this?

2) Any way to specify a PayPal "recurring" payment type?

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #132718 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Form: Supported Features
Hello

1. The PayPal email can be setup in the form itself or using global PayPal email under os_paypal payment plugin parameter. Exactly what do you want to do here? Please let me know so that I can understand your requirement and guide you

2. Payment Form does not support recurring payment. If you need recurring payment feature, please consider using Membership Pro extension instead

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Eileen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 5 months ago #132736 by Eileen
Replied by Eileen on topic Payment Form: Supported Features
Re: #1 below, if the form is set to be displayed on a page, can the PayPal email be set/overriden on page load, for example, either by passing a query param in the URL or via php/Javascript?

I'm considering this prospective use case:
1) User creates a listing using the Joomla component JReviews which allows for custom fields. One of those will be a dollar amount. I can also provide a button.

2) When the user clicks this button, I will:
a) Determine the logged-in user's email address
b) Read the "dollar amount" field in the active JReviews listing
c) Now I'd need to set the "Payment" and "Email Address" fields in the "Payment Form". This is the step I'm curious about: not having the product yet, I'm not sure if Payment Form works in such a way that one could set these values. FYI you don't need to worry about step a & b, just step c with the Payment Form.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #132743 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Form: Supported Features
Hello

1. The email can be detected automatically by Payment Form (base on email from logged in user). So you don't need to do that task (and how it's related to PayPal Email ? I think it's just the email of the user who will make payment for the site?)

2. So the only change needed is set the payment amount. For this, you need to customize the code abit to set the amount. Just need to customize code in calculateFormFee method in components/com_pmform/Helper/Helper.php , should be easy job if you know how to read that amount data from JReview

Tuan

Please Log in or Create an account to join the conversation.

  • Eileen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #132756 by Eileen
Replied by Eileen on topic Payment Form: Supported Features
Thanks!

Re: #1 below, you're right, I meant to write the Email would come from the owner of the JReviews listing which I can read from JReview. What method would I need to customize in Payment Form to set the email accordingly?

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #132757 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Form: Supported Features
Hello

The file is components/com_pmform/View/Form/Html.php , method display. Just set $data = 'theemailyouwant'; and it will be OK

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham NgocGiang Dinh TruongDang Thuc Dam