How can I retrieve the serial number of a pass from passslot? I have generated the pass using the following code:
[PassSlot createPassFromTemplateWithName:@"Membership Card" withValues:values andRequestInstallation:self completion:^{
NSLog(@"Pass!");
}];
Or How can I display a pass on my UIViewController
or PKAddPassesViewController
if I have the serial key of the pass as I can generate the pass from following API:
https://api.passslot.com/v1/templates/names/templatename/pass
I'm using the Passslot.com API for Passbook Passes, any suggestions?
Here is how you can get the pass serial number:
[PassSlot passFromTemplateWithName:@"PassSlot Demo" withValues:values pass:^(PSPass *pass) {
NSLog(@"Serial Number: %@",pass.serialNumber);
[PassSlot requestPassInstallation:pass inViewController:self completion:^{
NSLog(@"Done");
}];
}];