Allows Asset Store publishers to accept online customer support requests with automatic invoice validating beforehand.
Unity provides the api located at
http://api.assetstore.unity3d.com/ to be used to validate invoices by requiring a publisher identifier and an invoice number(s). Once it receives both of these it will return an array containing the following information:
- Purchase date
- Was the transaction reversed / refunded
- The invoice number you supplied
- The package/product name
Invalid invoices are not returned so this kit checks the number of returned invoices against the number sent to Unity as well as the refund status of the invoices. If all invoices return as validated, the contact form will be sent to the configured address.
In terms of the data collected to be sent to Unity, the publisher's identification is achieved via the private API key the publisher gets on the Unity Publisher's Administration page. This info is entered in the Dashboard and fetched before contacting the Unity API. This field is never revealed to anyone other than Unity and people with the authority to manage site options. The invoice numbers to be validated is provided by the person completing the form.
So in summary:
In the dashboard, provide the email address you want the contact form to be sent to and your private key to access the Unity API.
From the customer, collect their invoice number(s)
These two fields are sent to Unity who then returns anonymous info regarding the transaction including only purchases / refund status and purchase date.
v1.3.1
Unity changed the field names back so I am undoing the changes from version 1.2
v1.3
Return address now set to user's address, not your own as defaulted by Wordpress
Now sends mail as HTML, not plain text
v1.2
Updated to match Unity's new record structure
v1.1
Now not only verifies the invoice before sending the form but also sends the invoice number and your products on the invoice in the email also so you can verify the product in question is actually on the invoice.
The initial release also didn't include the name field from the contact form. That has been fixed. All fields are now returned.