Right now, it’s not possible to gift a subscription with Apple, but you can give out Apple ID credit to help them buy it.
When you send Apple ID credit, the recipient can use it to pay for items from the App Store. To do it, follow these steps on your iPhone:
Open the App Store app.
Tap your photo or the sign in button at the top of the screen. If you’re not signed in, sign in with your Apple ID.
Tap “Send Gift Card by Email.”
Enter your recipient’s email address. If you want, add a message.
Tap the amount that you want to gift, or tap Other to enter a different amount.
By default, the gift is sent immediately after you buy it. If you want to schedule the gift to send later, tap Today, then set the date that you want the gift to send.
Select a theme for your gift, then tap Next.
Tap Buy, then tap Buy Now to confirm.
Once the receiver has gotten your gift, all they need to do is use it to subscribe to Pro. Easy!