Grab values of other fields from webhook of tawk to - php

We have create a custom form while chatting with our users on twak to
Now using the webhook, we are able to grab the Question field and name field but we are unable to grab the phone field.
here is their documentation, but they are useless!

I got the same problem.
To solve it, I utilize the Tawkto JavaScript API instead of Webhook.
Please refer to - https://www.tawk.to/javascript-api/#onOfflineSubmit
All the form items should be found in the questions arrays of data parameter.

Related

Can I send extra data to Cybersource Secure Acceptance for use after a successful payment?

I'm trying to integrate Cybersource Secure Acceptance into a mobile app I'm building. Only problem is, I need to a way to pass extra data to the php that Cybersource supplies without the users entering, i.e: first name, last name, email, card number (not to save of course) and just have users review their order in a webview. How can this be done?
The short answer is yes, custom data fields are supported by CyberSource APIs. I would suggest you look at the guides relevant to your implementation. Start at https://support.cybersource.com/ and https://developer.cybersource.com/ to find the guides.
As a sample, however, if you're using the Simple Order API you can use the below fields to send data to CyberSource that will be returned to you in the reply. NOTE that Personally Identifiable Information is prohibited in these fields.
merchantDefinedData_field1
merchantDefinedData_field2
merchantDefinedData_field3
merchantDefinedData_field4
For data such as name, email address, etc that you already have stored and don't want the user to re-enter, this data can be POST'ed to the APIs via hidden input fields. Naturally, the field names must correspond to the API's required field names.

get all RecordType fields from salesforce using REST API in PHP

I have used the below API for get all Case fields.
/services/data/v35.0/sobjects/Case/describe/
Here I got the RecordType option. I am able to get the RecordType information but I am not able to get the all fields in the particular RecordType. Could you please help me to get list of fields alone using REST API in PHP.
Thanks in Advance!
You need to use SOAP API, it's called Metadata API.
You also might have some luck with the new Lightning/UI API, which is REST. However, it's still in developer preview, so you'd need to contact Salesforce to get it enabled.
Also, have a look or submit the question to Salesforce's StackExchange page.

custom field on subscription form not working chargify API PHP

I am trying to receive information from a custom field created in my public sign up form. The sign up form is used for subscription.
I use the webhook api to receive all the default fields or attributes on my end. However, I cannot recieve anything from the custom field.
The data is shown on chargify end in my admin area but nothing is outputted from the api to be received on my end.
Your advice is appreciated.
Unfortunately, custom fields aren't included in any of the webhook payloads, so you don't get them back in (for example) signup_success.
You would need to make an API call to the metadata endpoint to retrieve the values.
https://docs.chargify.com/api-metadata

How can I login as another user with Salesforce API?

I created an script to get some information users send via SMS then create a Contact in Salesforce using that information with the Salesforce API and works fine, but I hard-coded the user and password so every time a user creates a Contact from SMS i´ll be the creator. How can I access user´s credentials for creating the Contact? I want to do something like: select Id from User WHERE Phone = $_GET['mobile'] and then make createdById equal to user's id. Is that possible without having an array or file with user´s passwords?
Thanks in advance.
Answered on success community by David "wOOt!" Liu
You can edit the CreatedById field to anyone you want using Apex - no credentials needed!
Salesforce needs to turn on this permission for your org first - I believe it's called "Create Audit Fields". This lets you modify fields such as CreatedDate, CreatedById, etc etc. Many orgs use this so it's actually a fairly common request - I just wrote code recently that changed a record's creator as well.
Some more definitions on Audit Fields can be found here:
http://www.salesforce.com/us/developer/docs/api/Content/system_fields.htm

google checkout get custom variable at continue url

I am working with google checkout and currently working at sandbox environment. I have used Paypal and i thought google checkout should work like the same. but i wonder that google checkout is not posting back the HTML form field on return URL and im not able to find any proper solution for this problem yet. Here is my code.
here im using a custom field shopping-cart.merchant-private-data to get the data but i dont know how to collect that data on continue URL.
I just need to pass some ID in a custom field so that on return URL I can get it back and then change my database on the basis of this ID. There is one thing which is important that Upon return google checkout is destroying sessions also and there is no value stored in sessions. This made a big problem for me. So please tell me how i can get that custom ID back from google checkout.
There are a couple of separate issues here:
First, there is no automatic re-direct for the buyer after the Google Checkout transaction finishes.
The continue-shopping-url paramenter allows you to provide a link that the user has to click in order to get back to your site after completing the order. Because this is just a link, there is no data post, such as the transaction private data you are looking for.
More info about the continue-shopping-url paramenter:
http://code.google.com/apis/checkout/developer/Google_Checkout_HTML_API_Parameter_Reference.html#tag_continue-shopping-url
Second, you can use the <merchant-private-data> tag to pass any custom data about your order. To get it back you have to provide a callback URL in order to receive notifications from Google Checkout. When you get back the notification, read the custom info from the merchant-private-data tag .
See this answer for a solution to a similar issue.

Categories