priteshsaxena31
Forum Replies Created
-
Hello @jasonbahl Thanks for your response
For the queries it will be sorted out by id parameter as you can see the id is different in both the queries.city(id: “dGVybToxNDM=”) this is English post id
city(id: “dGVybTo4NjI2”) this is french post id
Some of the queries is working fine for posts but when i select english or french in this post type i have created a custom post type and a custom taxonomy when i fetch the posts based on taxonomy it gives same result which i have posted here.
When i check the database the data is correctly saved.
So what i thought is there is an issue when i fetch data using graphQL. Can you suggest something.
I have checked the database it saves correct value for english and french
Query are :
english query :
query NewQuery {
city(id: "dGVybToxNDM=", idType: ID) {
id
slug
languageCode
translations {
id
}
models {
edges {
node {
slug
languageCode
databaseId
}
}
}
posts {
edges {
node {
id
languageCode
}
}
}
}
}
result of english query :
{
"data": {
"city": {
"id": "dGVybToxNDM=",
"slug": "belgium",
"languageCode": "en",
"translations": [
{
"id": "dGVybTo4NjI2"
}
],
"models": {
"edges": [
{
"node": {
"slug": "phaedra",
"languageCode": "en",
"databaseId": 59387
}
},
{
"node": {
"slug": "valentina",
"languageCode": "en",
"databaseId": 59282
}
},
{
"node": {
"slug": "caroline",
"languageCode": "en",
"databaseId": 58213
}
},
{
"node": {
"slug": "angelina",
"languageCode": "en",
"databaseId": 58052
}
},
{
"node": {
"slug": "emily",
"languageCode": "en",
"databaseId": 57712
}
},
{
"node": {
"slug": "lisa",
"languageCode": "en",
"databaseId": 57502
}
},
{
"node": {
"slug": "julia",
"languageCode": "en",
"databaseId": 55700
}
},
{
"node": {
"slug": "isabelle",
"languageCode": "en",
"databaseId": 5742
}
},
{
"node": {
"slug": "iris",
"languageCode": "en",
"databaseId": 3151
}
},
{
"node": {
"slug": "alice",
"languageCode": "en",
"databaseId": 233
}
}
]
},
"posts": {
"edges": [
{
"node": {
"id": "cG9zdDo1ODU4NQ==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1ODM4OQ==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1NzgwOA==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1MjYy",
"languageCode": "en"
}
}
]
}
}
}
}
french query :
query NewQuery {
city(id: "dGVybTo4NjI2", idType: ID) {
id
slug
languageCode
translations {
id
}
models {
edges {
node {
slug
languageCode
databaseId
}
}
}
posts {
edges {
node {
id
languageCode
}
}
}
}
}
result of french query:
{
"data": {
"city": {
"id": "dGVybTo4NjI2",
"slug": "belgium-fr",
"languageCode": "fr",
"translations": [
{
"id": "dGVybToxNDM="
}
],
"models": {
"edges": [
{
"node": {
"slug": "phaedra",
"languageCode": "en",
"databaseId": 59387
}
},
{
"node": {
"slug": "valentina",
"languageCode": "en",
"databaseId": 59282
}
},
{
"node": {
"slug": "caroline",
"languageCode": "en",
"databaseId": 58213
}
},
{
"node": {
"slug": "angelina",
"languageCode": "en",
"databaseId": 58052
}
},
{
"node": {
"slug": "emily",
"languageCode": "en",
"databaseId": 57712
}
},
{
"node": {
"slug": "lisa",
"languageCode": "en",
"databaseId": 57502
}
},
{
"node": {
"slug": "julia",
"languageCode": "en",
"databaseId": 55700
}
},
{
"node": {
"slug": "isabelle",
"languageCode": "en",
"databaseId": 5742
}
},
{
"node": {
"slug": "iris",
"languageCode": "en",
"databaseId": 3151
}
},
{
"node": {
"slug": "alice",
"languageCode": "en",
"databaseId": 233
}
}
]
},
"posts": {
"edges": [
{
"node": {
"id": "cG9zdDo1ODU4NQ==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1ODM4OQ==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1NzgwOA==",
"languageCode": "en"
}
},
{
"node": {
"id": "cG9zdDo1MjYy",
"languageCode": "en"
}
}
]
}
}
},
}As you can see it gives same result
The error which shown in order notes :
Address which i added :Samantha Hudson
delhi
delhi
delhi 110094
Delhi
Stripe SCA authentication failed. Reason: Non-INR transactions in India should have shipping/billing address outside India. More info here: https://stripe.com/docs/india-exports Order status changed from Pending payment to Failed.In the log it shows this error :
2023-07-25T05:48:40+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /var/www/html/wp/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 472 and defined in /var/www/html/wp/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
Stack trace: 0 /var/www/html/wp/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(472): WC_Stripe_API::detach_payment_method_from_customer() 1 /var/www/html/wp/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(132): WC_Stripe_Customer->delete_source() 2 /var/www/html/wp/wp-includes/class-wp-hook.php(308): WC_Stripe_Intent_Controller->verify_intent() 3 /var/www/html/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 4 /var/www/html/wp/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /var/www/html/wp/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() 6 /var/www/html/wp/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax() 7 /var/www/html/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 8 /var/www/html/wp/wp-includes/plugin.php(517): WP_Hook->do_action() 9 /var/www/html/wp/wp-includes/template-loader.php(13): do_action() 10 /var/www/html/wp/wp-blog-header.php(19): require_once(‘…’) 11 /var/www/html/wp/index.php(17): require(‘…’) 12 {main}thrown in /var/www/html/wp/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php on line 327
- This reply was modified 1 year, 8 months ago by priteshsaxena31.