Get complete data of a transaction in Stripe - symfony

How can I get the complete information of transaction in Stripe?
For the fields which I filled at the Charge::create(), I want to get all the details: number,cvc,exp_month,exp_year ect.
I can get amount and id by using this server call
BalanceTransaction::retrieve($data['transactionID']);
Thanks.

You can use
charge:retrive("ch_%yourid");
you give you complete charge data , but give you last 4 digits of card number only.

Related

Looker Alert Issue

I am new to Looker and trying to create my first alert. The requirement is simple when a status field (calculated field) is greater than 1 looker should send an email. Though a couple of records value is more than 1 still not sending an alert. I didn’t schedule a delivery, just created an alert.
FYI: Row count exceeds 5000
I wanted the Looker to check every 15 min if the calculated field is greater than 1.
attached is the Snap of the alert
Can anyone please help me with what needs to be done?
TIA
Your setup looks correct. Check your permission and do a test run before scheduling the email.

how to parse json and create trigger based on incoming json data

Hi I want to monitor postgres database using ODBC and to show notification based on condition, I'm creating item with db.odbc.get[,{$DSN_NAME}], please find the screen shot my item configuration.
I can be able to get data, please find the below screen of receiving data
Now I want to process this data and to show notification for user that these jobs are failed if status equals 8, I have tried it with trigger, but I can't get rid of it.
please find the screen shot for trigger configuration and also error that has been occured
The following error is occured
Can any one help me on this, and also please correct me if my approach is wrong, since I'm very new for this.
I'm also trying with low level discovery, but I don't exact way of doing it,
I have tried below where I'm facing the following issue that
Cannot create item: item with the same key "db.odbc.select[testing_odbc {#job_name},{$DSN_NAME}]" already exists.
.
Find the screen shot of discovery rule below
Then I'm creating item prototype as below
please find the sample data from discovery rule
{
"data":[{"job_name":"job1","job_status":1},{"job_name":"job2","job_status":0},{"job_name":"job3","job_status":2}]
}
I'm scheduling the discovery rule for every 20 seconds and item prototype for every 30 seconds, and I guess for every 20 seconds it's trying to create item with same id as before.
How to resolve and for the sql query in item prototype what need to give.
That JSON text is not a number, so you can't compare it to a number.
Options:
change your query to return a number.
Use JSONPath preprocessing to select the number from the JSON (ie: $[0]["Status"])

How do I get a Price for Amtrak rail when using the Sabre RailShopRS

I am trying to implement AMTRAK Rail bookings using Sabre's RailShopRS.
I've been able to get a list of available journeys but now I'm struggling to figure out how I get a price for those journeys. It looks like the price should be part of the availability response but there never appears to be a price anywhere.
Is this something that should be part of the initial availability response or do I have to make a new request with details of the specific train and faretype?
Does this help?
http://files.developer.sabre.com/doc/providerdoc/rail/RailServicesDescription_v1.12.0.html#amtrak
Here are some sample request and responses:
http://files.developer.sabre.com/doc/providerdoc/rail/RS_Sample_RQ_RS_1_12_0.zip
There should be a list of 'Offers' within the response, with a reference to a JourneyId that can be used to match the fares with its corresponding journey/train option.

How to retrive the transfer order details, with the sales order number in Sterling OMS?

I've a requirement where in, I need to get all the transfer orders, that has been associated with the sales order.
Is there any api / attribute in getOrderDetails API that has transfer order number or TransferOrderHeaderKey ?
In the input, I've both sales order number and orderHeaderKey.
You should be able to use getOrderList call with a combination of documentType for Transfer Order and Derived_from_chained_order_header_key
Using below input you would be able to get all the transfer orders by invoking getOrderList api
<Order DocumentType="0006">
<OrderLine ChainedFromOrderHeaderKey="<SalesOrderHeaderKey>"/>
</Order>

Microsoft Dynamics AX 2012 - Purchase Price

I've been instructed to create a customization on how the Unit Price (Purchline.PurchPrice) is calculated.
Right now when I'm creating a new purchase order and select an item, it simply pulls from the pricing from the released products for that particular item.
For my customization, I'm going to be using 3 variables to determine the pricing.
1: ItemId
2: Current Session Date
3: Customized Field in the Purchase Header
As such, I'll need access to purchline for the ItemId on the current line, and access to purchtable to access my field in the header.
Right now there is a big process for how the pricing gets pulled from released products, how the system checks for discounts, etc.
My question is, can anyone suggest the best class/location to check and modify where my final PurchPrice field gets set and inserted into purchline?
I need this to be basically the last part of the process of how this PurchPrice gets calculated. I've looked around in the PriceDisc & PriceConvert classes, SalesPurchLine map, the modified method of the ItemId field of the form.
AxPurchline doesn't seem to be triggering at all when I put breakpoints in them and create new purchase order lines.
Any help, insight or advice on where it would be the best to make logic changes for the PurchPrice field would be greatly appreciated.
Thanks in advance!
The table Purchline actually has a method called setPriceDisc where the price agreement is set and the line amount is adjusted.
This seems to be the last place where PurchLine.PurchPrice is set.

Resources