You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a Wallet pass and it is not working.
I already have a certificate.p12 and when a run the sample code it generates a pass.pkpass, but pass not open.
Any clue?
My code:
staticPassKitCreatePass(){varpk=newPassKit();pk.PassType=PKPassType.EventTicket;pk.FormatVersion=1;pk.PassTypeIdentifier="pass.br.com.wizsolucoes.seguros";pk.SerialNumber="0988890";pk.TeamIdentifier="LUT4N73CY2";pk.WebServiceURL="https://pacific-plateau-64319.herokuapp.com";pk.AuthenticationToken="42977B70AE924C6EA7479CFAF3F4FCC1";pk.OrganizationName="Wiz";pk.Description="MOBILIZE";pk.LogoText="SOME TEXT";pk.BackgroundColor=PKColor.Parse("rgb(61, 104, 165)");pk.ForegroundColor=PKColor.Parse("rgb(255, 255, 255)");pk.LabelColor=PKColor.Parse("rgb(255, 255, 255)");pk.Barcode=newPKBarcode(PKBarcodeFormat.PKBarcodeFormatQR,"Oi","Oi de novo","Oi mais uma vez");varstripImage=newPKImage();stripImage.Filename=Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"img/strip.png");stripImage.HighResFilename=stripImage.Filename;stripImage.Data=File.ReadAllBytes(stripImage.Filename);stripImage.HighResData=stripImage.Data;pk.Strip=stripImage;varthumbnailImage=newPKImage();thumbnailImage.Filename=Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"img/thumbnail.png");thumbnailImage.HighResFilename=thumbnailImage.Filename;thumbnailImage.Data=File.ReadAllBytes(stripImage.Filename);thumbnailImage.HighResData=thumbnailImage.Data;pk.Thumbnail=thumbnailImage;variconImage=newPKImage();iconImage.Filename=Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"img/icon.png");iconImage.HighResFilename=iconImage.Filename;iconImage.Data=File.ReadAllBytes(stripImage.Filename);iconImage.HighResData=iconImage.Data;pk.Icon=iconImage;varlogoImage=newPKImage();logoImage.Filename=Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"img/logo.png");logoImage.HighResFilename=logoImage.Filename;logoImage.Data=File.ReadAllBytes(stripImage.Filename);logoImage.HighResData=logoImage.Data;pk.Logo=logoImage;varsf=newPKPassFieldSet();sf.Add(newPKPassStringField(){Key="test",Label="My Test",Value="This is my test!"});sf.Add(newPKPassStringField(){Key="test1",Label="My Test1",Value="This is my other test!"});pk.SecondaryFields=sf;varaf=newPKPassFieldSet();af.Add(newPKPassStringField(){Key="test2",Label="My Test2",Value="This is my test!2"});af.Add(newPKPassStringField(){Key="test3",Label="My Test3",Value="This is my other test!3"});pk.AuxiliaryFields=af;varbf=newPKPassFieldSet();bf.Add(newPKPassStringField(){Key="test4",Label="My Test4",Value="This is my test!4"});bf.Add(newPKPassStringField(){Key="test5",Label="My Test5",Value="This is my other test!5"});pk.BackFields=bf;returnpk;}}
The text was updated successfully, but these errors were encountered:
Hi,
Thanks in advance for this library!
I'm trying to create a Wallet pass and it is not working.
I already have a certificate.p12 and when a run the sample code it generates a pass.pkpass, but pass not open.
Any clue?
My code:
The text was updated successfully, but these errors were encountered: