Get info for Invalid Stripe textfield inputs - ios

I am using Stripe SDK for ios to make payments. I am using STPPaymentCardTextField to get card details input from the user.
I can check if details are invalid by using 'isValid' property but my concern is how can i get which input is invalid? like how can I get if the user has entered the wrong card number or expiration date is wrong and more?

The isValid property checks that all of the STPPaymentCardTextField fields are valid. To validate each input individually, you could use STPCardValidator.
Note that the STPPaymentCardTextField will automatically highlight any incorrect values in the inputs.

Related

Can we validate the response from google form whether entered value exists or not using google forms script?

I need to collect unique data through google forms. So I have one primary key on first section, after submit of first section, if this value exists I need to display error message on this section otherwise move to next section where I collect all the data. Can this be possible through google form script ?

Twilio Autopilot - Field Values are cumulative?

I'm exploring Twilio Autopilot. I trained a task with an annotated field to collect the user's first name. However it seems like every time I submit a request to this task, the new first name just gets added to an array. E.g. I have the sample set up as something like:
Hi there, my name is {first_name}.
If I submit it 3 times like this:
Hi there, my name is Frank.
Hi there, my name is Bill.
Hi there, my name is Jim.
By the third time, it is submitting an array of [Frank,Bill,Jim] for the Field_first_name_Value request parameter.
Is there any way to configure it so we overwrite the value every time we submit the field?
Twilio developer evangelist here.
At the moment, there is no way to configure it so the value is overwritten each time the field is submitted. I've passed this on to the product team as a feature request!

REST API error while posting a customized Priority fields

I'm trying to post REST API of the ORDERS form.
I have added a few customized fields to the sub form PAYMENTDEF in order to post all the credit cards information.
I'm getting the error:
'An error has occurred'
any time I'm posting the customized fields, if I remove them from the request I managed to post.
{"CUSTNAME":"5","CDES":"רועי בן מנחם","CURDATE":"2018-07-18","BOOKNUM":"2164","SHIPTO2_SUBFORM":{"NAME":"רועי בן מנחם","PHONENUM":"0507573753","ADDRESS":"דן 4","STATE":"שערי תקווה","COUNTRYNAME":"Israel","ZIP":"44810","ADDRESS2":"44"},"ORDERITEMS_SUBFORM":[{"PARTNAME":"CLEAN0044","TQUANT":1,"PRICE":19.9,"REMARK1":"","ROYY_ORDISPECS_SUBFORM":[]},{"PARTNAME":"000","TQUANT":1,"PRICE":30,"REMARK1":""}],"PAYMENTDEF_SUBFORM":{"PAYMENTCODE":"3","QPRICE":53.28,"PAYACCOUNT":"1234","PAYCODE":"","VALIDMONTH":"0124","CCUID":"123456789","CONFNUM":"09090909","ROYY_NUMBEROFPAY":"","FIRSTPAY":"","ROYY_SECONDPAYMENT":""}}
And this is my header:
https://pri.officeandmore.co.il/odata/Priority/tabula.ini/tirgul2/ORDERS
Try check if these fields are visible in the REST api service:
Request the service metadata as following:
https://pri.officeandmore.co.il/odata/Priority/tabula.ini/tirgul2/$metadata
In the result check for the PAYMENTDEF subform's metadata (search for <EntityType Name="PAYMENTDEF"> and check if your customized fields appear in the property (field) list.
If they don't appear, probably these fields are set as 'hidden fields' in the 'Priority form' or that you have permission limitations.
If they do appear, the problem is probably related to incorrect values you are trying to post to these fields. Take a look in the metadata result to see the expected values format for each of these fields.

How can I get list of all data set codes of Quandl API?

I want list of all dataset codes for each company,Ex. for Facebook dataset code is FB,for MICROSOFT it is MSFT.How can I get such list of all available codes for data sets ??
You can get the list of all the available datasets in a database provided you have the database name.
GET https://www.quandl.com/api/v3/datasets?database_code=<database-name>&api_key=<api-key>
Replace the value <database-name> and <api-key> in the above URL. This will return a list of dataset object. Each object will have a dataset_code field having the required value.
Make sure you register on the quandl website for getting the access key. You do not have to pay or give credit card details for registration.
For JSON response you can use the below. Also you can mention the current page and page size as below -
https://www.quandl.com/api/v3/datasets.json?database_code=${databaseCode}&api_key=${apiKey}&current_page=${currentPage}&per_page=${perPage}

Testing email markup against myself not working

I've used this schema example and sent myself an email using the Email Markup App Script.
The mail is recieved but no Event card is shown. I've also validated it with the Google Markup Validator, and I'm not missing any required field. What am I doing wrong?
PD: Only "Action" markup worked for me.
#whitenoisedb I see that you've tried sending the lodgingreservation schema to yourself. If you're copying and pasting the example without modifying the checkinDate and checkoutDate attributes, your card will not generate until 2017.
"checkinDate": "2017-04-11T16:00:00-08:00",
"checkoutDate": "2017-04-13T11:00:00-08:00"
Use a current checkinDate (ex. 2015-12-15T16:00:00-08:00) instead.
If the dates are coming up soon and it is still not showing, there is a chance that this type of Google cards are not supported in your country

Resources