Paddle - The checkout id must be a valid checkout id - next.js

I'm trying to test paddle subscriptions on localhost. When I use the product id and vendor id from an example git repo everything works.
When I use my own vendor id and product id (plan id) I get a 400 error:
{"errors":[{"status":400,"code":"validation","details":"The checkout id must be a valid checkout id.","source":{"pointer":"\/checkout_id"}}]}
I have created a subscription on the portal which gives me a'Plan Id'. Is the plan id the wrong id to be using here?
Paddle.Checkout.open({ product: 752932 });

I had the exact same setup and symptoms. I assume you're using the Paddle sandbox since you're testing on localhost. What helped me is that I had to add
Paddle.Environment.set('sandbox')
right above the
Paddle.Setup({ vendor: xxxx })
This did it for me, but annoyingly enough wasn't well documented at all so it took a bunch of digging.
Hope this helps you too!

Generally, this type error occurs when checkout request goes from localhost. I faced the same problem. When I test it on my hosting server, it works fine. The weghook_url should be approved by the paddle. You can set up the web hook here paddle web hook setup.

Related

Amazon Pay on Woocommerce error in Sandbox mode (InvalidOrderReferenceId)

I installed the Amazon Pay plugin on my WordPress/Woocommerce website, left in in Sanbox mode, created a Sandbox test account and when I run a test transaction, I get a message that states "Invalid Payment Method"
When I go to the Woocommerce log, the error that I find is:
<ErrorResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
<Error>
<Type>Sender</Type>
<Code>InvalidOrderReferenceId</Code>
<Message>The OrderReferenceId S00-0000000-0000000 is invalid.</Message>
</Error>
<RequestId>646d0e3e-b603-420d-8178-ad20690fee41</RequestId>
</ErrorResponse>
Any ideas? Thank you!
Please follow the Integration guide: https://developer.amazon.com/docs/eu/amazon-pay-onetime/intro.html
You would have to use an Amazon Generated Order ID from the Address widget. Please obtain it using the function:
onOrderReferenceCreate: function(orderReference) {
// Here is where you can grab the Order Reference ID.
orderReference.getAmazonOrderReferenceId();
},
You can use the orderReference ID anywhere from this point. Since, you are using WooCommerce SP, you can follow the integration guide too.
Thanks.

IQ Block Country - Change country param while locked out

Problem
I have current version: IQ Block Country Version 1.1.43
So I had blocked all countries except my home country, but then I moved.
I wanted to be able to login to my word press site without having to resort to options such as:
VPN to change IP to other country
proxy server
teamviewer/remote to other contry
I wanted a way to disable IQ country, change the geo setting, and then login again normally.
I renamed the plugin, in the plugin directory and was able to login to my backend (instead of being redirected). However, when I renamed the plugin again I was kicked off the site again.
Question: I was looking in the database but could not found where the country settings are stored. Where would a wordpress plugin store this data?
Current Workaround
I went to the file: iq-block-country/libs/blockcountry-checks.php via FTP.
and I found where the function doing the block checking exists.
Then set $blocked to false, before returning.
//MINOR HACK
$blocked = FALSE;
return $blocked;
Following I was able to edit the list of countries, and then commented out the $blocked = FALSE;
I would like though to be able to do it through PHPAdmin if I travel and this happens again.
You can remove the option blockcountry_blockbackend from your wp_options table next time. And then login again and set your backend blocking options again.

ccavenue - iframe method shows blank page after click the paynow button in asp.net

I am New to Payment Gateway Integration and i'm using CCAvenue iFrame method for my site. Using Query String method i sent all details like amount, merchant id, order id etc. to ccavRequestHandler.aspx.cs file.
But it shows only Blank Page without any error message.
There are all done in my testing environment and testing environment is activated from CCAvenue.
Thanks in Advance.
Finally I found the Ans...
In CCAvenue Iframe method, dont change anything in "download kit". And Use that files(dataform.htm,ccavRequestHandler.aspx, ccavResponseHandler.aspx with dll) without change anything.
Make Sure Test Environment is Activated or not from CCAvenue. if its not make call to CCAvenue they will do it. After that use test environment url(www.test.ccavenue.com/..... ) with Newly Generated Access code and Working key.
Sure U will Get the Final Result.
Hope, i will helps someone.

Trouble integrating simplephp with symfony

Ok, i'm integrating simpleSAML with symfony as an sp, for my own reasons I don't want to use the sp bundle.
I've setup simplesaml in /simplesaml, as per instructions, and it works a charm.
I'm able to test it with a simple web site test.php, where i do this
$as = new SimpleSAML_Auth_Simple('google');
if($as->isAuthenticated()===false){
$as->requireAuth();
}
$attributes = $as->getAttributes();
print_r($attributes);
and that works fine, but if i flip it over to my symfony site, i can see symfony resetting the php session cookie, so i assume that it is not able to find the one set by simplesaml.
I tried the same above code in my logincontroller to see if i could get my idp supplied data, i can not, it bounces me through my IDP login and lands me on the simplesaml page, which gives me 'State information lost'
Any help appreciated.
'State information lost' is pretty generic. The documentation provides a check list of things that can cause the problem
Hostname changes. If you visit https://www.example.com and your metadata says https://example.com then the cookie created on the initial visit won't be available.
Move between HTTPS and HTTP.
Mismatch between the cookie settings (name, path, domain, etc) for SSP and symfony
The SamlTracer plugin for firefox is useful in deciphering what SAML messages are being exchanged, including what attributes the IdP is sending.

Integrate twitter in drupal 7 website

I am trying to get the twitter module (7.x-5.4) running on my local drupal 7.19 website. Already installed Oauth and registered a twitter app. I am using the keys of that twitter app.
Callback URL
http://localhost/drupal-7.19/twitter/oauth
twitter host
http://twitter.com
Twitter API
https://api.twitter.com
Twitter search
http://search.twitter.com
TinyURL
http://tinyurl.com
when I want to add at least my own twitter account so that the site can display my tweets. when I want to add this account, an error occurs:
Notice: Undefined property: stdClass::$data in Twitter->request() (line 131 of root\modules\twitter\twitter.lib.php).
Could not obtain a valid token from the Twitter API. Please review the configuration.
any ideas? thanks in advance.
In my case, uncommenting the line
extension=php_openssl.dll
in php.ini resolved the error.
I'm not sure this will work for you, but this worked for me. I had the same exact error, even though I had followed the documentation. Here's the test: go to admin/reports/status. If you see the following warning: "HTTP request status Fails" this means your drupal/LAMP stack is unable to use DNS to callback to itself. In my case I used my machines's IP to access my Drupal instance. So, rather that use "localhost" use your machine's IP address (you can use ipconfig on MSWin or ifconfig on Mac/Linux) and use that for finishing the twitter account setup process.
Again, not
http://localhost/drupal-7.19/twitter/oauth
but
http://10.0.1.9/drupal-7.19/twitter/oauth
(substituting your machine's IP address)
I was getting the exact same error which i fixed by adding appropriate proxy server details.
Notice: Undefined property: stdClass::$data in Twitter->request() (line 131 of C:\wamp\www\test_twitter\sites\all\modules\twitter\twitter.lib.php
The problem was due to proxy-settings. I added values for $conf['proxy_server'] and $conf['proxy_port'] in settings.php and this error vanished.
I also verified that if i remove the proxy settings, this error is reproduced again.
Install oauth_common and twitter on your Drupal site
Check that both Oauth and the Twitter modules are enabled. I didn't use any of the other Twitter modules to do this
Go to the twitter module in Drupal
Go to the Configure (button) -> settings (Tab)
(note that the Callback URL is http://localhost/yourwebsite/twitter/oauth i.e. it doesn’t have to be 127.0.0.1)
Click on the link that says register your application
Go to twitter and sign in to be a developer
Add a new application, making a distinct feed name
Enter your site details
For localhost use: http://127.0.0.1:8000/twitter/oauth for both the website and callback URLs
Press save when you've done
Next go to the Test OAuth button - this will give you your illusive consumer key and consumer secret key
Back to the Drupal website and and to the twitter module to configure (button) -> settings (Tab)
Copy and paste these consumer and consumer secret keys you just got
Press Save configuration
Hopefully no errors.
Go to the twitter tab in the module and hopefully your twitter avatar has appeared
Read the top of the page where it says "Tweets are pulled from Twitter by running cron. You can view the full list of tweets at the Tweets view."
Select the View Tweets checkbox and click view - Chances are your tweets won’t show up in the next window - yet
Go to your drupal Configuration screen and to [System] Cron and press the "Run cron"
Now go back to view tweets from the twitter module and they should all appear
[This was a pig to figure out]

Resources