Home › Forums › Quform WordPress › Integrate with PayPal variable amount
- This topic has 5 replies, 2 voices, and was last updated 3 months ago by Ally.
- AuthorPosts
- February 4, 2019 at 4:23 am #28399effendycParticipant
hi,
How do i integrate with PayPal passing variable amount field from QuForm to PayPal payment?
There is information given https://support.themecatcher.net/quform-wordpress/guides/integration/paypal but this is fixed amount when creating PayPal Button.Thank you.
February 7, 2019 at 3:28 pm #28456AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 11, 2019 at 8:45 am #28529effendycParticipanthi Ally, i have created plugin for this PayPal integration, but it fails when install a new plugin..?
Attached is the plugin, any reason why? thanksAttachments:
You must be logged in to view attached files.February 15, 2019 at 4:19 pm #28566AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 19, 2024 at 11:49 am #37291janheuParticipantHi,
i would like to use paypal in a form where ppl can select different products and configurations.
The amount is shown in different fields, once they´ve chosen a product and config.
Somehow currently Paypal just recognizes the shipping costs.
when i embed the same fields into mails it works like it should.
Currently i´m using a setup like this to get the amount.$amount = $form->getValue('quform_1_121') ?? $form->getValue('quform_1_131') ?? $form->getValue('quform_1_136') ?? $form->getValue('quform_1_145');
if ($amount) {
// remove currency
$amount = str_replace(['€', ' '], '', $amount);
$amount = number_format((float)$amount, 2, '.', '');
} else {
$amount = '0.00';
}
$quantity = $form->getValue('quform_1_65') ?? $form->getValue('quform_1_34') ?? $form->getValue('quform_1_43') ?? $form->getValue('quform_1_138') ?? $form->getValue('quform_1_144');
$quantity = $quantity ?: '1';
$url = add_query_arg(array(
'cmd' => '_cart',
'upload' => '1',
'charset' => 'utf-8' ...
Any idea why its not grabbing the value correctly?
August 20, 2024 at 9:39 am #37294AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.