Integrate with PayPal variable amount

Home Forums Quform WordPress Integrate with PayPal variable amount

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28399
    effendyc
    Participant

    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.

    #28456
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #28529
    effendyc
    Participant

    hi Ally, i have created plugin for this PayPal integration, but it fails when install a new plugin..?
    Attached is the plugin, any reason why? thanks

    Attachments:
    You must be logged in to view attached files.
    #28566
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #37291
    janheu
    Participant

    Hi,
    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?

    #37294
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy