• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can a Total text field be used for Payment?

Can a Total text field be used for Payment? 9 years 4 months ago #33570

  • gurdip
  • gurdip's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
i'm running the latest RSForm! Pro 1.50.26 on joomla 3.4.8.

instead of using the Total field under Payment, i've used a text field as i need it return a calculation result.


calculation on the Total text field:


is there a way to make this work?

it appears that paypal doesn't recognise the value in the Total field as the form does not redirect to paypal upon submission.

is there a workaround this issue?

here's my form:
www.tjitransporter.com/singapore/test-form

would appreciate your assistance.

i'm aware of the following faqs, and all is in order on my form:
www.rsjoomla.com/support/documentation/r...upon-submission.html
The administrator has disabled public write access.

Can a Total text field be used for Payment? 9 years 4 months ago #33577

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

This article explains how you can personalize PayPal parameters in your form. In your case, you'll have to adjust the amount parameter to have your textbox value. The script would be similar to (whereas myTextBoxName is the exact name of your textbox):
$paypal = RSFormProPayPal::getInstance();
$paypal->args['amount'] = $_POST['form']['myTextBoxName'];

The RSForm!Pro PayPal integration will still require the following specialized elements in your form:

- (Payment) PayPal
- a "Single Product" field that can have any price, higher than zero, which can be hidden from the frontend area (edit the field > Attributes tab).

The Single Product is needed to trigger the PayPal redirect, though the actual amount value is overridden via scripting.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: gurdip

Can a Total text field be used for Payment? 9 years 4 months ago #33581

  • gurdip
  • gurdip's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
appreciate your quick reply, will try out the solution.

thank you again.
The administrator has disabled public write access.

Can a Total text field be used for Payment? 9 years 3 months ago #33597

  • cjmicro
  • cjmicro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 5
I just did this and it worked to add custom fields in the "item name" we needed a field added.

// Get a new instance of the PayPal object.
$paypal = RSFormProPayPal::getInstance();

// We will change the item name parameter
$paypal->args = $_POST.' '.$_POST.' My Text Here';
The administrator has disabled public write access.

Can a Total text field be used for Payment? 8 years 3 months ago #36280

  • patrick403
  • patrick403's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Thank you received: 5
How would this work for Authorize.net?
The administrator has disabled public write access.

Can a Total text field be used for Payment? 8 years 3 months ago #36286

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

This would be done in a similar fashion. An example is provided in the RSForm!Pro Authorize.net integration plugin documentation (bottom section).

Besides the "(Payment) AuthorizeNet", "Total" and a "Single Product" with a price higher than zero, you'll also require the "Choose Payment" form element added.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!