Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all 25503 articles
Browse latest View live

Abhilash commented on Add a new javascript code on a web page through a Shopify App - Shopify Admin API


marcus0993 commented on Opening product Directly

$
0
0

I can see that it loads the products into the collection view and then uses this to show the products in the other views. But is there an easy way to either open a single product description or load the product list instead of the collection view?

Any help would be amazing! thanks :) 

Andy Lower commented on Does an app have to be listed in the app store to have its webhooks called?

$
0
0

Hi there,

Our webhooks get called on apps whether they're listed or not, so you shouldn't have a problem. We also receive emails if our script doesn't respond successfully. 

Thanks,

Andy

Andy Lower commented on orders/paid webhook also firing orders/updated & orders/cancelled also firing orders/updated

$
0
0

Hi J,

We had the same issue.

Whilst I can't help with why they do this, we placed all of the order updates/cancellations/paid webhooks into a queue. In the script that processes the queue, we check for duplicates to make sure we only execute the update/cancellation once.

Hope that's of some use.

Thanks,

Andy

Travis' Bad Ass Surf Shop Admin commented on Does an app have to be listed in the app store to have its webhooks called?

$
0
0

Thanks Andy. 

Turns out we had a problem with SSL and it's working now. 

Cheers.

Travis' Bad Ass Surf Shop Admin commented on Webhook error: unable to get local issuer certificate

$
0
0

We solved this. 

Despite SSL Labs giving our SSL certificate a B rating, it was not sufficient to pass the Shopify's requirements. We purchased and installed a new certificate from GoDaddy, which gave us an A- rating on SSL Labs, and our webhooks started working again. 

 

DV commented on orders/paid webhook also firing orders/updated & orders/cancelled also firing orders/updated

$
0
0

Thanks for your reply.

Yes makes sense. I appreciate the update.

Using Stripe token in order to complete payment for checkout by Hilal

$
0
0

My goal is to create a checkout for a customer (programmatically), lets say I added an item worth 7$, I also made sure the checkout with id {checkoutId} has the billing address and the shipping address and shipping rate. 

The next step would be to let the customer complete the payment of 7$+shipping and tax, but also this I want done programmatically without user interaction.

We would like for the payment to be done using a Stripe token which represents the customer's payment details that were entered in Stripe, according to the docs here (the snippet later), but when trying to do so I get the response (the json snippet) that says "credit_card" is blank, which makes me think that the checkout payment was done without any payment information? 

Posting to https://myShop.myshopify.com/api/checkouts/{checkout token}/payments.json
{
"payment": {
"amount": "4800.00",
"unique_token": "12345",
"payment_token": {
"payment_data": "tok_1BO0KXXXXXXXXXX",
"type": "stripe_vault_token" }
}
}

responds with:
{
"errors": {
"payment": {},
"checkout": {
"credit_card": [
{
"code": "blank",
"message": "can't be blank",
"options": {}
}
]
}
}
}

Could you guide me as to how I should complete the checkout payment programmatically using the tokenized payment information that we got from Stripe. 

 

Thank you in advance


1unes Collaborator commented on The requested URL returned error: 411 Length Required, while activating charge

$
0
0

Well, I supose everybody here was using phpish... Recap:

.- Error 411 on PUT methods started to occur (never happened before)

None of the above solutions worked for me: 

This is what I did to solve it: phpish\http FIX:

1.- Edit phpish\http.php

2.- Go to line 90, after line: "if ('POST' == $method)..." add this line:

if ('PUT' == $method) $request_headers[] = 'Content-Length: 0';
 

Solved!;

Weird thing:

As a curiosity: same app, same products on a cloned developer shop: worked OK without the fix.

But in production shops with custom domains: the phpish\http fix was needed as I had this 411 inferno as a result.

availableShippingRates is listed under Storefront API variables, but doesn't show up in JSON by Heather Cash

$
0
0

In the documentation for the Storefront APICheckout -> AvailableShippingRates is listed as an available field. However, when my webhook retrieves the JSON for checkout/update, I don't see available shipping rates listed. Does anyone know why this is? How can I get the available shipping rates in the JSON?

Thanks,
Heather

Heather Cash commented on Abandoned checkouts

Products endpoint results: published_at column is sometimes earlier than the created column by Harrison

Frank Schmid commented on Problem completing a checkout

$
0
0

Hello Josh,

I'm currently hitting the same problem. When trying to do a free checkout as documented with the Checkou API (just trying to convert a checkout to an order _WITHOUT_ any payment) I receive the "Cannot complete the checkout without any transactions." error too.

As I read your answer here you're talking about payment processing - but completing a free checkout imo does not involve payment processing at all. Am I missing something here? Or did you mean that anything related to orders will not work if you're not approved - and in this case the checkout is a dead-end?

Best regards,

Frank

price rule API, status code 422, Unprocessable Entity by etrade8899

$
0
0

I did a simple post with follow JSON string, however, the response is error code 422 , Unprocessable Entity

 

{
  "price_rule": {
    "title": "TESTAFOne",
    "target_type": "line_item",
    "target_selection": "all",
    "allocation_method": "each",
    "value_type": "percentage",
    "value": "-1.0",
    "starts_at": "2017-11-19T17:59:10Z"
  }
}

 

Thanks

 

 

koki mourao commented on Buy Button + Referral Tracking

$
0
0

Hello Clement, 

When you say "As long as you have a unique source for each website" is this a special parameter we can add to each buy button?

Thank you
 


Chris Andrews commented on Webhooks bug

$
0
0

It would be great if you guys could do something about this. I'm working on an app that requires reasonably timely awareness of collect changes, and the best I can do is poll all collects every 30 seconds or so - ugh!

I'd suggest/request that you provide collect update/create/delete/change for custom collections only. For smart collections, you could send a 'collects update complete' after the collects for a smart collection have been updated after save. There's no need to notify on every collect for smart collections.

Another request for Collects... how about letting me update a collect to change its 'position'? I'd like to be able to sort a collection without deleting and creating every collect.

Thanks,

Chris

Clement commented on Buy Button + Referral Tracking

$
0
0

No, I was referring to the utm source parameter here.

Utm parameters are used to track the traffic, as described here https://en.wikipedia.org/wiki/UTM_parameters

You can craft urls with different utm parameters and distribute them to your various partners and channels (twitter, email, facebook, etc...). When a customer clicks the buy button, the utm parameters are recorded by Shopify, and those can be used to create various reports, such as sales per channel, sales per affiliate, etc...

 

Shopify Recurring Charge Api Not Working by Marketingmindz

$
0
0

I have created an Shopify App. I am having issue with Recurring Charge api. Here  is my code which is taken from https://github.com/phpish/shopify_app-skeleton.


function post_paymentoption($shop,$api_key,$oauth_token)
{
    $shopify = client($shop,$api_key,$oauth_token);

            $charge = array(
            "recurring_application_charge" => array(
                "name" => "Basic Plan",
                "price" => 0.99,
                "return_url" => "https://mydomain.com/response.php",
                "test" => true
            ));    

            $paymentoption = $shopify('POST /admin/recurring_application_charges.json',$charge);
            return $paymentoption;
}


Please help me what i am doing wrong

 

Hilal commented on Test Shopify Payments through the API

$
0
0

I have the same issue, has anyone solved this? 

When asking shopify for help they redirect me to a page where I can hire a developer for help..

If this persist, I will have to recommend to our CTO to switch to something other than shopify

Josh Wheeler commented on price rule API, status code 422, Unprocessable Entity

$
0
0

Hey there, 

According to the error I get when using the JSON above, the 'customer_selection' parameter can't be blank - or in this case, it's just not present.  

If you designate a customer_selection (the value should be 'all' if you want it to apply to everyone) then you should be able to finish creating your price rule. 

Hope that helps! 

Cheers, 

Josh Wheeler

Viewing all 25503 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>