Download the PHP package w4s/w4s-php without Composer
On this page you can find all versions of the php package w4s/w4s-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package w4s-php
Wallet4Sales v1 SDK Quickstart
Quickstart for Wallet4Sales v1 platform
Overview
This quickstart guide is designed for developers to run rapidly within the Wallet4Sales v1 environment using PHP. For further information please feel free to create a request or write to us at: [email protected].
Authentication
Our system uses an authentication process for each user account. You need to create your account before requesting your API_KEY. Please click here to create your account
Get Your API Keys
Log to your account, go to your user profile and click the button to request your API_KEY. An email will be sent to the account you confirmed with your credentials. In case you cannot find a way to request your API_KEY, you can write to us at [email protected] to request your credential and connect to our service.
Composer
The Wallet4Sales SDK uses composer to manage dependencies. Visit the composer documentation to learn how to install composer.
Go to the root of the project
then install it through composer:
This SDK and its dependencies will be installed under ./vendor
.
Create a new Template
To create a new Template, you will need your API_KEY to make a request to our system. This will be attached to the Authorization header: Bearer {API_KEY}
.
This template will be created in your administrator panel with a code useful for your next requests such as creating a campaign for your marketing action.
Table of contents for a Template
Key name | Type | Descripción |
---|---|---|
BackgroundColor | color, as a string | Required. Background color of the pass, specified as an CSS-style RGB triple. For example, rgb(23, 187, 82). |
ForegroundColor | color, as a string | Required. Foreground color of the pass, specified as a CSS-style RGB triple. For example, rgb(100, 10, 110). |
LabelColor | color, as a string | Required. Color of the label text, specified as a CSS-style RGB triple. For example, rgb(255, 255, 255). |
OrganizationName | string | Required. Display name of the organization that originated and signed the pass. |
PassTypeIdentifier | string | Required. Pass type identifier, as issued by Apple. The value must correspond with your signing certificate. |
TeamIdentifier | string | Required. Team identifier of the organization that originated and signed the pass, as issued by Apple. |
PassType | integer | Required. EL ID del tipo de pase que se creará. Por ejemplo 2. |
CertificateID | integer | Required. EL ID del Certificado que ha subido o del propio sistema. |
TemplateName | string | Required. Nombre del template que se va a crear. |
Description | localizable string | Required. Brief description of the pass, used by the iOS accessibility technologies. Don’t try to include all of the data on the pass in its description, just include enough detail to distinguish passes of the same type. |
Content | array | Required. Pass content due to theWallet4Sales documentation. |
Items | array | Required. Items del pass due to Wallet4Sales documentation It can encompass the following values: bodyHeader , bodyBack , bodyPrimary , bodySecondary , bodyAuxiliary , bodyBack |
Upload a Certificate
To upload a certificate, you must download a CSR on our platform or request one following the instruction:
The request send you back a signature request which must be uploaded to your Apple Developer account to issue your certificate.
Upload your Certificate (CER)
Once your certificate has been issued in your Apple Developers account, you can upload it to our system and it will return the CertificateID you need to create your Template
.
Create Campaign
A marketing campaign helps us distribute passes. It allows us create your taylor made marketing action towards your clients.
It will send you back the CampaignCode
you need to create and distribute passes.
Create Pass
All versions of w4s-php with dependencies
ext-zip Version *