How do I implement offer code in flutter?

I created an offer code within the subscription in App Store Connect, and on the Flutter side, I want to send the code entered by the user to Apple and start the user's subscription.

Can I do this on the flutter(client) side? Or do I need to connect it from the backend?

How do I implement offer code in flutter?
 
 
Q