Can we search for Order ID linked to Payment ID through Square Connect API? - square-connect

Is there a way using the Square Connect API to take a payment ID sent via webhook and find the associated Order ID?
I find it odd that the Payment object listed in the documentation (https://docs.connect.squareup.com/api/connect/v1/#datatype-payment) does not have an order_id value or the Orders API does not have a get/order_by_payment_id option (https://docs.connect.squareup.com/api/connect/v1/#navsection-orders).
Are there plans to implement either of these options?

It is not currently possible to get a Payment object's associated order ID with the Connect API.
I have filed a feature request with the API development team.

Related

Outlook Graph API not receiving groups

What I am trying to achieve -
When I call message API, it returns the group address to which mail is sent, I want to get the members of the group, And for that I believe I need group Id, so I am using the groups API mentioned below https://graph.microsoft.com/v1.0/groups
But this API returns an empty list to me.
Note: email I using is #outlook.com, not xyz.com.
The Microsoft graph API doesn't support personal accounts as you can see the below image. You should have a Work account to get the group details. You were able to get the messages because it supports personal accounts to read messages from your mailbox.

Refund payment by order line item ID

Can I refund an Order/Payment by specifying the the uid of the OrderLineItem instead of specifying a Money?
Not via the API, but you could via the Dashboard or POS application. The API currently does not support itemized refunds.
https://developer.squareup.com/reference/square/refunds-api/refund-payment

Slack API get user join to the team date

Is there a way to get user join date to the team via Slack API? The best would be to have all the users and their join dates in the same JSON. Searched through https://api.slack.com/methods , but was not able to find such a method.
Its in the API method team.accessLogs. There you get the property date_first, which is the date when that user first logged into Slack.
This method is for payed teams only. But you can track that information yourself with a small app that listens to team_join event.

linking parse and stripe user

My app requires users to log in with Parse to make a purchase and uses parse cloud to process payments using Stripe. Payment works fine. I want to associate the card that just used to make the payment to the [PFUser currentUser] so I can load the cards for user to select next time. How can I achieve that? Is it possible to get the card information from the token?
P.S one user can have many card and one card can belong to many user.
I'm not sure exactly what you mean by "card information" but it should be possible to achieve what you want. You'll want to first create a Customer object in Stripe to represent each user. Each Stripe Customer has a list of payment sources associated with them, and you can read the brand and last4 if you need to display a list of these to the user to select one.
Once you create a customer in Stripe, you can create any number of Charges.
All of this can be done in a straightforward manner using the intuitive Stripe API. You can also manage Customers and Charges via the Stripe dashboard.

Google Checkout subscription: How to identify the user

We are using Google Checkout - google handled subscriptions. In our html form we are using merchant-item-id parameter to store the subscription plan id and user id, so when Google Checkout send us back the notification for the new orders (merchant-item-id is there) we know what user for what plan to charge. So far this works perfect.
But now, when a month is passed, and Google Checkout start creating the reoccurring orders, there is no merchant-item-id parameter in the notifications they send. So we don't know what user for what plan is charged.
What should we use as user identifier, so we can handle properly the subscription on our site?
Any ideas?
Btw. I know about the "buyer-id" parameter which is send with each new order notification, but that will not work for us, because it is possible that the same google buyer is paying for several of our users accounts.
I would try putting some unique info in "shopping-cart.items.item-1.merchant-private-item-data" to something unique that I can identify the subscription by.
Nikolaj

Resources