Change card PIN using Curve app

How will it work?
If you are at the airport
Change the pincode in the app
Then go onboard a flight
And the system are running offline

Or if the payment system are offline in a shop, if the system are offline
And process the payment

How do you make sure the pincode get on the card?