Paypal API cache - api

I've been looking for a way to get payments out of Paypal with the API.
Currently I'm doing this with 'v1/reporting/transactions'.
The thing here is that there is a 'last_refreshed_datetime', which means it can take a few hours before new transactions load in.
Does someone have an idea to force a transactions update or another way to get them?
Quartz

Best solution is to use a server-side integration to capture all orders, then you have an immediate notification of every single new transaction.
See 'Create Order' and 'Capture Order', documented here.
You can use those to create two server routes that only return JSON, and pair them with this approval flow: https://developer.paypal.com/demo/checkout/#/pattern/server
If for some reason you're not able to use that best of integration methods, you could subscribe to webhooks or use IPN for an asynchronous notification of new transactions.

Related

Shopify app for altering the default checkout procedure

I need to create a solution for altering the checkout process.
Better said, I need to add some functionality to it with a remote app (I am not sure if this is the right way to do it).
Mainly, what is needed represents a process that calls an external API, using a private API key from a delivery company, that registers a pick-up from the buyers house and sends the product to our headquarters.The process should be started when the user completes the entire checkout system from shopify, after payment.
After that, some AWB should be returned to the users checkout page, or some response regarding the creation of the pick up.
My question is, let's say, using some language like javascript with node and Koa or express, how one can achieve that? I can't find any tutorials or something that would help me do this.

Shopify subscription but doesn't start until second billing cycle

I would like to set up a Shopify subscription model that starts with 1 main product but allow for recurring subscription of "refills" for the product. However the "refills" would should only start on the second month as the main product includes the first set.
Is there a subscription app that allows for this functionality?
That is completely supported by the Shopify Subscription API. If you try the various Apps that support Subscriptions, and they do not provide for this functionality, make a support request. You'd be surprised how easy it can be to get them to add basic stuff. Otherwise, roll your own App and you can make a plan that has this functionality without too much fuss.

In Square, when we mark an Order as Ready, is there any way to get Square to notify that user via email or text?

With the new API, it is great that we are able to push orders to the POS app - now I just need a way to notify customers that the pick-up is ready. I have my own system seperately right now, but is there any way to do this inside of Square. Or even better, is there any way to hook into a square event?
I see webhooks, but only things like payment, refund, dispute events. Is there any way to catch an order status change?
Currently there are webhooks for different order update events:
You could then create some webservice of lambda to process such webhook payload, and submit an email using some 3rd party email sending solution.
There is a challenge that since you will need to query the square api for the rest of order details, you will need to create a square app, implement oauth etc.
Unfortunately, there's currently no Order webhooks at this time. Webhooks are definitely an area Square's APIs have been focusing and improving lately, so I suspect this to be an area we continue to improve. With that said, there is no ETA on if/when this is coming, sadly we do not share public timelines.

How to capture when a recurring payment is executed in shopify?

I need to know how to detect recurring payments in shopify, so that when a recurring payment happens, perform an action.
In what part of shopify can I detect it, in the code, database?
Thank you for you help.
There are no recurring payments or subscriptions in Shopify at this time. External Apps are used to fake that, so you'd be looking at how they work, and interacting with them to determine recurring payments.
If you mean recurring charges for Apps you make, there is an API endpoint you call that will tell you everything you want to know with a GET. As per the docs, see here:
https://help.shopify.com/en/api/reference/billing/recurringapplicationcharge

Shopify API: How do I get API schema changes?

We have a custom integration that uses Shopify API. Changes to the schema breaks the integration. Today we have found The field Source has been removed and 3 fields have been added in its place: source_identifier , source_name and source_url. (orders api)
Is there a way to get information on coming changes, so we can be pro-active, rather than waiting for our integration to break in production and look for the changes while our fulfillment service waits?
Better late than never ;) I suggest you checkout the API Accouncements topic in the Shopify forum, as that is where all important API changes are posted:
https://ecommerce.shopify.com/c/api-announcements
Note: You can subscribe to the topic, so whenever something new is posted you'll automatically get an email notification.