We have encounteres several issues with the paid version of the plugin and we need some immediate assistance. What we wanted to achieve is to implement subscription payment into contact form – so user after going through form should be redirected into paypal and have a subscription created
Also – before I wrote that I made sure that all plugins are updated. I ran tests on it on both php 7.4 and 8.1, in both cases issues appeared.
List of contact form related active plugins on our site:
Before I started debugging it we had activated at the same time plugins “Accept PayPal Payments using Contact Form 7” and “Accept PayPal Payments using Contact Form 7 Pro”, but when I updated them to the newest version, my wordpress admin panel started crashing – I had to manually debug it and it looks like these plugins have the same function names and because of that fatal error was triggered. After I deactivated free plugin, it started working fine.
That plugin requires a lot of work before it will start normally working, how you can take money for it?
Start from fixing the issue with “HTTP/2 stream 1 was not closed cleanly” as that is the most critical of these.
After payment is done I get this error (it’s part of error as .
Please help.
Failed to get activateobject(PayPal\Exception\PayPalConnectionException)#3543 (9) { ["url":"PayPal\Exception\PayPalConnectionException":private]=> string(92) "https://api.paypal.com/v1/payments/billing-agreements/EC-69V78871JV137523W/agreement-execute" ["data":"PayPal\Exception\PayPalConnectionException":private]=> NULL ["message":protected]=> string(62) "HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(92) ["file":protected]=> string(150) "/home/podl/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php" ["line":protected]=> int(186) ["trace":"Exception":private]=> array(12) { [0]=> array(6) { ["file"]=> string(149) "/home/podl/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php" ["line"]=> int(78) ["function"]=> string(7) "execute" ["class"]=> string(32) "PayPal\Core\PayPalHttpConnection" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(0) "" } } [1]=> array(6) { ["file"]=> string(151) "/home/podl/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php" ["line"]=> int(104) ["function"]=> string(7) "execute" ["class"]=> string(31) "PayPal\Transport\PayPalRestCall" ["type"]=> string(2) "->" ["args"]=> array(5) { [0]=> array(1) { [0]=> string(26) "PayPal\Handler\RestHandler" } [1]=> string(70) "/v1/payments/billing-agreements/EC-69V78871JV137523W/agreement-execute" [2]=> string(4) "POST" [3]=> string(0) "" [4]=> array(0) { } } } [2]=> array(6) { ["file"]=> string(138) "/home/podl/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Agreement.php" ["line"]=> int(408) ["function"]=> string(11) "executeCall" ["class"]=> string(33) "PayPal\Common\PayPalResourceModel" ["type"]=> string(2) "::" ["args"]=> array(6) { [0]=> string(70) "/v1/payments/billing-agreements/EC-69V78871JV137523W/agreement-execute" [1]=> string(4) "POST" [2]=> string(0) "" [3]=> NULL [4]=> object(PayPal\Rest\ApiContext)#3550 (2) { ["requestId":"PayPal\Rest\ApiContext":private]=> NULL ["credential":"PayPal\Rest\ApiContext":private]=> object(PayPal\Auth\OAuthTokenCredential)#3549 (8) { ["clientId":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{oauth-token-credential}" ["clientSecret":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{client-secret}" ["targetSubject":"PayPal\Auth\OAuthTokenCredential":private]=> NULL ["accessToken":"PayPal\Auth\OAuthTokenCredential":private]=> string(97) "{access-token}" ["tokenExpiresIn":"PayPal\Auth\OAuthTokenCredential":private]=> int(32307) ["tokenCreateTime":"PayPal\Auth\OAuthTokenCredential":private]=> int(1726751464) ["cipher":"PayPal\Auth\OAuthTokenCredential":private]=> object(PayPal\Security\Cipher)#3548 (1) { ["secretKey":"PayPal\Security\Cipher":private]=> string(80) "{client-secret}" } ["_propMap":"PayPal\Common\PayPalModel":private]=> array(0) { } } } [5]=> object(PayPal\Transport\PayPalRestCall)#3552 (2) { ["logger":"PayPal\Transport\PayPalRestCall":private]=> object(PayPal\Core\PayPalLoggingManager)#3551 (2) { ["logger":"PayPal\Core\PayPalLoggingManager":private]=> object(PayPal\Log\PayPalLogger)#3545 (5) { ["loggingLevels":"PayPal\Log\PayPalLogger":private]=> array(8) { [0]=> string(9) "emergency" [1]=> string(5) "alert" [2]=> string(8) "critical" [3]=> string(5) "error" [4]=> string(7) "warning" [5]=> string(6) "notice" [6]=> string(4) "info" [7]=> string(5) "debug" } ["loggingLevel":"PayPal\Log\PayPalLogger":private]=> NULL ["loggerFile":"PayPal\Log\PayPalLogger":private]=> NULL ["isLoggingEnabled":"PayPal\Log\PayPalLogger":private]=> bool(false) ["loggerName":"PayPal\Log\PayPalLogger":private]=> string(31) "PayPal\Transport\PayPalRestCall" } ["loggerName":"PayPal\Core\PayPalLoggingManager":private]=> string(31) "PayPal\Transport\PayPalRestCall" } ["apiContext":"PayPal\Transport\PayPalRestCall":private]=> object(PayPal\Rest\ApiContext)#3550 (2) { ["requestId":"PayPal\Rest\ApiContext":private]=> NULL ["credential":"PayPal\Rest\ApiContext":private]=> object(PayPal\Auth\OAuthTokenCredential)#3549 (8) { ["clientId":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{oauth-token-credential}" ["clientSecret":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{client-secret}" ["targetSubject":"PayPal\Auth\OAuthTokenCredential":private]=> NULL ["accessToken":"PayPal\Auth\OAuthTokenCredential":private]=> string(97) "{access-token}" ["tokenExpiresIn":"PayPal\Auth\OAuthTokenCredential":private]=> int(32307) ["tokenCreateTime":"PayPal\Auth\OAuthTokenCredential":private]=> int(1726751464) ["cipher":"PayPal\Auth\OAuthTokenCredential":private]=> object(PayPal\Security\Cipher)#3548 (1) { ["secretKey":"PayPal\Security\Cipher":private]=> string(80) "{client-secret}" } ["_propMap":"PayPal\Common\PayPalModel":private]=> array(0) { } } } } } } [3]=> array(6) { ["file"]=> string(109) "/home/podl/public_html/wp-content/plugins/contact-form-7-paypal-addon-pro-master/inc/lib/class.cf7pap.lib.php" ["line"]=> int(347) ["function"]=> string(7) "execute" ["class"]=> string(20) "PayPal\Api\Agreement" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(20) "EC-69V78871JV137523W" [1]=> object(PayPal\Rest\ApiContext)#3550 (2) { ["requestId":"PayPal\Rest\ApiContext":private]=> NULL ["credential":"PayPal\Rest\ApiContext":private]=> object(PayPal\Auth\OAuthTokenCredential)#3549 (8) { ["clientId":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{oauth-token-credential}" ["clientSecret":"PayPal\Auth\OAuthTokenCredential":private]=> string(80) "{client-secret}" ["targetSubject":"PayPal\Auth\OAuthTokenCredential":private]=> NULL ["accessToken":"PayPal\Auth\OAuthTokenCredential":private]=> string(97) "{access-token}" ["tokenExpiresIn":"PayPal\Auth\OAuthTokenCredential":private]=> int(32307) ["tokenCreateTime":"PayPal\Auth\OAuthTokenCredential":private]=> int(1726751464) ["cipher":"PayPal\Auth\OAuthTokenCredential":private]=> object(PayPal\Security\Cipher)#3548 (1) { ["secretKey":"PayPal\Security\Cipher":private]=> string(80) "{client-secret}" } ["_propMap":"PayPal\Common\PayPalModel":private]=> array(0) { } } } } } [4]=> array(6) { ["file"]=> string(52) "/home/podl/public_html/wp-includes/class-wp-hook.php" ["line"]=> int(324) ["function"]=> string(12) "action__init" ["class"]=> string(10) "CF7PAP_Lib" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(0) "" } } [5]=> array(6) { ["file"]=> string(52) "/home/podl/public_html/wp-includes/class-wp-hook.php" ["line"]=> int(348) ["function"]=> string(13) "apply_filters" ["class"]=> string(7) "WP_Hook" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> NULL [1]=> array(1) { [0]=> string(0) "" } } } [6]=> array(6) { ["file"]=> string(45) "/home/podl/public_html/wp-includes/plugin.php" ["line"]=> int(517) ["function"]=> string(9) "do_action" ["class"]=> string(7) "WP_Hook" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(1) { [0]=> string(0) "" } } } [7]=> array(4) { ["file"]=> string(38) "/home/podl/public_html/wp-settings.php" ["line"]=> int(700) ["function"]=> string(9) "do_action" ["args"]=> array(1) { [0]=> string(4) "init" } } [8]=> array(4) { ["file"]=> string(36) "/home/podl/public_html/wp-config.php" ["line"]=> int(89) ["args"]=> array(1) { [0]=> string(38) "/home/podl/public_html/wp-settings.php" } ["function"]=> string(12) "require_once" } [9]=> array(4) { ["file"]=> string(34) "/home/podl/public_html/wp-load.php" ["line"]=> int(50) ["args"]=> array(1) { [0]=> string(36) "/home/podl/public_html/wp-config.php" } ["function"]=> string(12) "require_once" } [10]=> array(4) { ["file"]=> string(41) "/home/podl/public_html/wp-blog-header.php" ["line"]=> int(13) ["args"]=> array(1) { [0]=> string(34) "/home/podl/public_html/wp-load.php" } ["function"]=> string(12) "require_once" } [11]=> array(4) { ["file"]=> string(32) "/home/podl/public_html/index.php" ["line"]=> int(17) ["args"]=> array(1) { [0]=> string(41) "/home/podl/public_html/wp-blog-header.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> NULL }
]]>
When user select recurring payment it’s created with “frequency” set to “MONTH” which is good, but cycles is set to “1” which is bad (“cycles”: “1”), it causes that after first payment is completed recurring payment cancels itself.
I guess “cycles” should be set to “999999999999” or “0” instead of “1”…
How can I fix this?
There is a typo in class.cf7pe.admin.action.php that leads to a fatal error:
add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’, 10, 2) );
should be:
add_action(‘upgrader_process_complete’,array( $this, ‘option_tbl_upgrade_action’), 10, 2 );
]]>We have just starting using this plugin after numerous issues with another that was designed for syncing Contact 7 forms with PayPal (or stripe) and not working properly. This plugin does work, however our only concern is that as another reviewer commented recently, notifications are only sent on successful completion after returning from paypal, not right after submitting the form. This has resulted in not getting a copy of all completed forms if a customer doesnt finalise the payment process. Is there any way to change this process so that all completed forms irrelevant of payment completion are sent via email? Even if one email is sent on form submission and another after payment, that would be better.
]]>We have followed the online guides to adding the Stripe fields (with an additional Stripe submit button) to our form, but the form wont submit.
]]>Form is working fine and paypal payment is working too but email is not being sent to the given IDs. Paypal payment is showing successfull and user is redirecting to the site but email are still not being sent to the mail address.
]]>
I have a serious issue with the invitation form. If, for any reason, individuals cancel the payment on PayPal after the redirection or if a network error occurs, the contact form still sends a confirmation email, even if the payment has failed.
Also some short code also not working like Date.
]]>We’re getting the fatal error after submission on the PayPal form. Please resolve this.
Image: https://prnt.sc/sSL-wV0tAm1V
Fatal error: Uncaught PayPal\Exception\PayPalConnectionException: Got Http response code 403 when accessing https://api.paypal.com/v1/payments/payment/PAYID-MWO53LQ50C03810BJ782941L
Thanks
Hi, I have a serious problem, I have a form for an invitation, if people, for some reason, after the redirect on paypal cancel payment or some network error happens contact form still sends confirmation email even if payment failed.
This can’t happen, can u help?
]]>China has about 700 million people use alipay payment methods, I hope to add Alipay payment interfaces.
]]>Hi,
Your plugin gives security errors within wordpress as seen below:
2 critical issues
An active PHP session was detected
Performance
A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.
The REST API encountered an error
Performance
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
Error: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (http_request_failed)
These were found in the site health screen of the admin system ../wp-admin/site-health.php
Once the plugin is deactivated the issues go away.
Please can you patch and release a fix.
Kind regards,
]]>Trying to use your plugin, because we have multiple options set-up for purchasing/donations. When I submit a test form – the Error I am getting is in the topic title.
This is how the contact form is setup:
<p><label>Date* [date* date class:underinput placeholder "Date"] </p>
<p><label>Full Name*</label> [text* Full Name ]</p>
<p><label>Email Address*</label>[text* Email Address ]</p>
<p><label>Telephone Number*</label>[text* Telephone Number "555-555-5555" ]</p>
<p><label>Item Description</label>[text Wall of Stars readonly "Wall of Stars" ]</p>
<p><label>Quantity</label>[text Quantity readonly "1" ]</p>
[radio radio-73 label_last default:1 "8 inch - $50.00" "10 inch - $100.00" "12 inch - $200.00" "14 inch - $500.00" "15 inch - $1,000.00"]
<p><label>Donation</label>[text Price "$" ]</p>
<p><label> Additional Gift</label>[text Enter Amount "$" ]</p>
<p><label>Total Amount</label>[text Enter_Total_Amount "$" ]</p>
<p><label>Inscriptions/Dedications (All text is case sensitive and centered automatically on the tags. Please use the spaces provided below for your message and note that characters include letters, numbers, spaces and punctuation.) </label>
<p> <label>Line 1* (maximum 15 characters)</label>[text* Line_1 maxlength:15] </p>
<p> <label>Line 2* (maximum 18 characters)</label>[text* Line_2 maxlength:18] </p>
<p> <label>Line 3 (maximum 18 characters)</label>[text Line_3 maxlength:18] </p>
[select menu-222 "Pay with PayPal|paypal"]
I have tried radio-73 and enter_total_amount as the amount field.
Help please.
]]>Request Paypal api Credentials form on WordPress site .
]]>Hello !
I have just recovered the management of a WordPress on which this plugin is installed. The redirection to Paypal does not work. Nothing happens during the validation of the form. Do you have an idea of the problem?
Thanks for your help!
]]>Hi guys,
We need to give users the option to pay via bank transfer or Paypal.
Is it possible to configure this with your plugin?
Thanks!
D
Hi, I am getting an error on my thank you page, everything goes through fine to sandbox paypal and then when paypal redirects back to the thank you page (or even just the homepage but I have set up the thankyou page) it directs fine to the thank you page but produces the following error:
Notice: Array to string conversion in /home/xxxxxxxx/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/class.cf7pe.lib.php on line 581
xxxxxxxx is my url pathname
Then when contactform7 brings in the emails it just prints ‘array’ instead of the value of the array.
But, I also have the spreadsheet plugin installed and the array value is passing fine to the spreadsheet I am guessing because this is passed before it goes to paypal whereas the values are being passed to the email after it goes through payapl.
Please excuse my basic knoweldge of this, I am not a full time developer I just tinker, but getting really stuck on this.
line 581 in the lib file is this:
$value = str_replace( ‘[‘ . $k . ‘]’ , $v, $value );
The code within this is:
$new_mail = array();
if ( !empty( $mail ) && !empty( $data ) ) {
foreach ( $mail as $key => $value ) {
if( $key != ‘attachments’ ) {
foreach ( $data as $k => $v ) {
$value = str_replace( ‘[‘ . $k . ‘]’ , $v, $value );
}
}
$new_mail[$key] = $value;
}
}
return $new_mail;
}
am at a loss, have uninstalled all other plugins installed them again, gone back to the 2020 theme and I still can’t seem to work out why it is throwing this error in the email it returns.
Running most latest version of wordpress, plugins and using crome on win10.
]]>Hello,
I’m getting a fatal error after making the payment, in either live or sandbox. It forwards to paypal fine, after paypal tries to process it and return back to the website, it fails with the error below. Same result if paying via credit card or a paypal account.
I’m currently on 5.2.5 which says it’s supported.
Anyone else having this issue or have any ideas?
error below
——–
Fatal error: Uncaught TypeError: Argument 1 passed to PayPal\Transport\PayPalRestCall::__construct() must be an instance of PayPal\Rest\ApiContext, instance of __PHP_Incomplete_Class given, called in /homepages/17/d277796807/htdocs/clickandbuilds/CredibleHomeInspections/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php on line 101 and defined in /homepages/17/d277796807/htdocs/clickandbuilds/CredibleHomeInspections/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php:38 Stack trace: #0 /homepages/17/d277796807/htdocs/clickandbuilds/CredibleHomeInspections/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php(101): PayPal\Transport\PayPalRestCall->__construct(Object(__PHP_Incomplete_Class)) #1 /homepages/17/d277796807/htdocs/clickandbuilds/CredibleHomeInspections/wp-content/plugins/contact-form-7-pa in /homepages/17/d277796807/htdocs/clickandbuilds/CredibleHomeInspections/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 38
]]>Hello,
Did you made some change recently on your plugin?
The [paypalsubmit] shortcode is not working anymore on our website.
See on given link (clink on first choice “UNE VERRIERE” and see issue at the bottom of the page)
Thank you
]]>I am not receiving email from the CF7 -> PP form. Does this plugin NOT send the CF7 form data via mail when a checkout is NOT completed? I ask because I am testing this CF7 -> PP form in Live mode, so I am not completing the checkout process all the way (I stop once I am logged into my own PP acct). But I think the plugin should still send the data from the CF7 form via email even if a transaction is not completed, yes? I do notice the form data is saved in my Advanced CF7 DB database but I never receive any emails.
]]>Hello,
I have below error in Paypal payment.
ERROR ::
Fatal error: Uncaught PayPal\Exception\PayPalConnectionException: Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LVURQVA03127804GL8921801. in /home/theoruby/public_html/realhearing.co.uk/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php:207 Stack trace: #0 /home/theoruby/public_html/realhearing.co.uk/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php(78): PayPal\Core\PayPalHttpConnection->execute(”) #1 /home/theoruby/public_html/realhearing.co.uk/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php(104): PayPal\Transport\PayPalRestCall->execute(Array, ‘/v1/payments/pa…’, ‘GET’, ”, Array) #2 /home/theoruby/public_html/realhearing.co.uk/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Paymen in /home/theoruby/public_html/realhearing.co.uk/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php on line 207
The site is experiencing technical difficulties.
This is the error which is occurred when i move the paypal from sandbox mode to live mode.
Please reply back for same as soon as possible.
Thanks.
]]>everything is sent to paypal correctly. see the amount in paypal. klick on pay. crash. newest wp version
Fatal error: Uncaught PayPal\Exception\PayPalConnectionException: Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LVT24RI9SN143398J0252528. in /www/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php:207 Stack trace: #0 /www/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php(78): PayPal\Core\PayPalHttpConnection->execute(”) #1 /www/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php(104): PayPal\Transport\PayPalRestCall->execute(Array, ‘/v1/payments/pa…’, ‘GET’, ”, Array) #2 /www/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php(600): PayPal\Common\PayPalResource in /www/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php on line 207
I have everything set up with Sandbox API credentials only (not Live credentials, those fields have been left blank for now during testing). When I submit the form, I am taken to the Paypal checkout sandbox, I am able to login using my sandbox buyer credentials and the checkout process seems to run fine. Then I’m redirected back to my website as set up in the Success Return URL field. However, I never receive any emails, either as the seller, or the buyer. Why not? CF7 isn’t sending any mail. Does this plugin not send emails while using test mode only? What do I need to do to fix this?
]]>Hello,
the documentation and form config tab says: “Sandbox PayPal Client ID” and “Sandbox PayPal Client Secret” but in my sandbox account under “API Crendtials” are only “Username”, “Password” and “Signature”. Which one is correct? The Form is redirecting and also submit but no payment is received!?
Screenshot:
https://ibb.co/WGNtYzv
Lars
]]>I have contact forms that have multiple submit buttons with different settings for each button. By moving PayPal submit options to a tab, this update has broken sites that use multiple buttons for different options on the same form. I have reverted to a previous version for now, but this is only a temporary solution until PayPal decides to stop supporting the submission method used by version 2.4.
Can you please put short-tag support back into future versions and only use the settings in the PayPal tab as defaults if no short-code tags are used?
Thanks.
]]>Old event is not working to trigger the redirection which is “mailsent.wpcf7” so I have changed it to “wpcf7mailsent” so now it is working so new code will be.
jQuery(document).on(‘wpcf7mailsent’, function () {
if(paypal_url != “” && paypal_location == “”)
{
jQuery(‘.wpcf7-response-output’).append(‘You are not redirected to PayPal as you have not configured PayPal Submit Button properly. <br>’);
}
else if(paypal_location != “”)
{
window.location = paypal_location;
}
});
I am getting the following JavaScript error:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
this is happening on
if(amount.indexOf('-') != -1){
amount = amount.split('-');
amount = amount[1].trim();
}
]]>
I did integration with Paypal by using Contact Form 7 – PayPal Extension plugin but at the time of submission of the form it redirects to the default action of that contact form but its suppose to redirect to Paypal login page
]]>There was an error trying to send your message. Please try again later. This is an error as form submitting Can Anyone Help out with it
]]>I enabled paypal on my registration form and added my product name and price. When I test the form it redirects to paypal checkout however it says “Things don’t appear to be working at the moment. Please try again later.” Could this be due to a misconfiguration on my side?
]]>