custom field on subscription form not working chargify API PHP - 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

Related

attach website username to paypal IPN product_id

i have IPN data sending back the correct info, i have the product id and i also have a text box for user's to write in their in-game-name in on my website.
im stuggling to attach the username input with the IPN product_id. what i want it to do is when the user clicks the paypal button, it process's the transaction and if approved the username entered from the website and product_id get placed into a array or something that i can later put into my database
im quite new to php and html please bare with me
When you create a PayPal transaction, pass a variable named custom with the values you want to store as part of the transaction.
For old-style HTML integrations that use no API or JS, this is documented here: https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/#payment-transaction-variables
IPN is very old and clunky. Crrent PayPal integrations don't use IPN at all, but rather two routes on your server that call the PayPal API -- one for 'Create Order' and one for 'Capture Order', documented here: https://developer.paypal.com/docs/business/checkout/server-side-api-calls/#server-side-api-calls
When you do that capture call you get an immediate response of success/failure and can update your database/system accordingly. Thus there is no need to wait around for PayPal to send you an IPN notification.
Those two routes on your server should return JSON data (and only JSON data) when called. The approval flow to pair with them is https://developer.paypal.com/demo/checkout/#/pattern/server
You can add POST data values to your fetch request.

Grab values of other fields from webhook of tawk to

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.

Get data, process payment and then get it again

I've set up my IPN on PayPal and I get the transaction id, product name and all that but my question is how can I set up custom fields that I can retrieve after payment using the IPN?
Thanks in advance
There is a parameter called CUSTOM that you include in your button code or API calls. Anything you pass here will come back in IPN as $_POST['custom']. If you need multiple parameters you could store them there as an NVP string or however you want to pass them and then parse them back out within your IPN script.
Alternatively, you could save all your order data to your database prior to sending the user over to PayPal. Then you can include your db record ID in the PayPal payment using the INVOICE parameter, which again, would come back in IPN as $_POST['invoice']. With that you could pull the data back out of your DB based on the record ID and process it accordingly.

Associate docusign envelope to salesfoce

I'm initiating an envelope using the REST API. I was able to set a custom field on the envelope to the salesforce account Id and then once complete upload the final document and update fields.
My next problem is I have some custom tags. In the custom tag settings I've related them to salesforce fields and enabled write back. I can't seem to get these to update salesforce if the information in the document changes. Is there an internal field or value that I need to set for the envelope to associate it with sales force?
Do I understand correctly that you've already installed DocuSign for Salesforce in your Salesforce org and have configured it to point to your DocuSign account? If so, you likely just need to update the "(Salesforce) Connect" configuration in DocuSign to explicitly tell it to write back the fields. I don't believe "merge fields" will write back data to Salesforce for envelopes that are initiated via the API.
This guide contains info about updating Connect settings for the DocuSign for Salesforce Connect configuration: http://www.docusign.com/sites/default/files/DocuSign%20Connect%20for%20Salesforce.pdf. Specifically, content relevant to your scenario starts on page 4 under heading "DocuSign Connect for Salesforce Settings -- and especially within item #7. To edit, add, delete, or change the order of Connect Objects that begins on page 6.
Within the "Salesforce" Connect Configuration in DocuSign, you can add a new "Connect Object" to have DocuSign automatically update a specific type of object in Salesforce based upon criteria you specify. For example, let's assume that you want to automatically update a Contact record in Salesforce (using data from DocuSign fields in a completed envelope) whenever a completed envelope contains a DocuSign secure field called HCP_ID, and the value in the HCP_ID DocuSign field matches the HCP_ID field value on a Contact record in Salesforce. Creating a Connect Object like the following would accomplish this:
The field mappings in the "Update Fields" section specify which values in Salesforce you want to update with which DocuSign values. (See the guide I've linked to above for more information -- it explains things in much greater detail than I've done here.)

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