admin管理员组

文章数量:1287511

I'm customising the details section of my wallet pass using detailsTemplateOverride. I want to have the location shown with the blue 'directions' icon. This works fine without the override but when I use the override to display specific textmoduledata only, the location is not shown. I've tried the below but it doesnt work..there doesn't seem to be any documentation on this.

                'detailsTemplateOverride' => [
                    'detailsItemInfos' => [
                        [
                            'item' => [
                                'firstValue' => [
                                    'fields' => [
                                        ['fieldPath' => "object.locations[0]"]
                                    ]
                                ]
                            ],
                        ]

            'locations' => [
                [
                    'latitude' => 51.431156,
                    'longitude' => -9.961117,
                    ]
                ],

本文标签: Google Wallet APILocation with detailsTemplateOverrideStack Overflow