how to get overview report using stripe api - php

I got a problem about the stripe documentation, are they have a support api to get the data like this?
I'm using laravel, and want to create the report data like stripe dashboard.
I'm trying to check the console and see their fetch xhr and they have this
link
but I need login first to stripe dashboard to see the data
so, how I can I get the api for report overview like that?

Related

Link Paypal Html Script and webhook

I am using the Paypal Subscription Button Html and Script provide by paypal. Now I wanted to link with paypal webhook. I want to track the events like BILLING.SUBSCRIPTION.RENEWED and BILLING.SUBSCRIPTION.CANCELLED.
Is this possible without using the App keys? When I created the App , I created with the same paypal-id so, that means my all webhooks in app is going get render when subscription event take place, without attaching any keys with it ?
Anyone there who can solve my query?
In order to receive Webhook events, you need to first subscribe to them.
For information on ways to subscribe to Webhook events for an application, see the PayPal documentation here.
It can be done via an API call, or via the Developer Dashboard.

Get Leads data from facebook to integrate with CMS?

I want to retrieve the leads data from the facebook Marketing API and it should synchronize with the client custom CRM. I have gone through the guide given by facebook but I am not sure how to implement and get the result.
Is there a way to set up my code so that my leads data is directly triggered into the client CRM? Without using any third party tool?
Yes, you can do this through the Marketing API.
There is a full guide here:
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/

How to create and get CustomerPaymentProfile in Authorize.Net

Hello,
I am new at Authorize.net and facing some trouble to integrate it with my PHP web-site.
My issues:
1) When i create a customerProfile a payment profile also get created along with it.There is a method to get customerProfileId($response->getCustomerProfileId()). But how to get customerPaymentProfileID?
2) When i create a customerPaymentProfile it is gives success response. but null customerPaymentProfileID.
3) How to get a list of all customerPaymentProfiles by customerProfileId only.
I am using same code as provided in Developer API referance in SANDBOX mode
Please help me with this problem guys.
In Authroize.Net
to get customer payment profile ids for a customer profile id, use this sample code :Sample Code to Get Payment Profile Ids.
And while creating a customer payment profile, it returns a customerPaymentProfile : API Reference,
check the response tab.
For that you need to use $response->getCustomerPaymentProfileId()

Xero API LeaveTypeID

I'm trying to integrate a web app in PHP to integrate Xero. My objective is to submit a leave form to Xero from the application.
I'm using https://github.com/XeroAPI/XeroOAuth-PHP and did manage to get the employee lists. But the example request shows I need to pass the LeaveTypeID along with the EmployeeID. Where can I get the LeaveTypeIDs ie. What is the Leave type ID for Annual Leave or Sick leave. Here is the Sample xml Request I found in the example in http://developer.xero.com/documentation/payroll-api/leaveapplications/
<LeaveApplications>
<LeaveApplication>
<EmployeeID>5abad362-28aa-4c2c-a9cb-0899f7262d62</EmployeeID>
<LeaveTypeID>dc182d9a-a270-4f4e-acd7-af702d5a4382</LeaveTypeID>
<Title>My Test Leave</Title>
<StartDate>2013-04-11</StartDate>
<EndDate>2013-04-11</EndDate>
</LeaveApplication>
</LeaveApplications>
I searched the Internet, Xero documentation and the community portal but nothing is there> Any help is much appreciated.
Updates:
#ronanq - I've Tried that, using the following code to get the LeaveTypes from the Demo account
$response = $XeroOAuth->request('GET', $XeroOAuth->url('PayItems', 'payroll'));
pr($response); exit;
getting the following response:
code => 401
response => You do not have permission to access this resource.
The other end points are working fine.
Solution:
Thanks to #ronanq. the "payroll.payitems" needed to be added as a scope on Authorization. That will give access to get the LeaveTypes from xero
You can retrieve leave types and their associated LeaveTypeIDs from the PayItems endpoint.

google checkout,How to find payment completed in API callback

Now i am working with Google checkout payment.I want to find the payment completion using API callback url,And i need to send an email to the payer,When he complete the payment.Can anyone help me with some example codes.
Use the Notification API to get transaction information back from Google Checkout.
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html
When you get back the notification, you can read your custom ID from the merchant-private-data field.
Source get value return in google checkout
Thanks
For code examples on using the Google Checkout APIs please have a look at the "Client Libraries & Sample Code" section in the Checkout developer documentation:
https://developers.google.com/checkout/samplecode

Categories