GLInAppPurchase icon indicating copy to clipboard operation
GLInAppPurchase copied to clipboard

Printing current price

Open jackpaster opened this issue 7 years ago • 7 comments

Hi @gokulgovind this project is so amazing. Thumbs up. But I have a question. How can I make it so that the current package/price is printed when the boost button is pressed. And if no package is selected then the print statement would be "no package"

jackpaster avatar Apr 17 '17 11:04 jackpaster

Hai jackpaster, When user selects a package, that package info will be returned through their completion handler. From where we can maintain a reference of selected package's price and other details.

gokulgovind avatar Apr 17 '17 12:04 gokulgovind

@gokulgovind can you show me how I could handle the reference of the selected package on completion

jackpaster avatar Apr 17 '17 12:04 jackpaster

@jackpaster i have update the code, now boost button completion handler will return 3 parameters.

  1. button title -> String
  2. isOptionSelected -> Bool
  3. selectedOption -> GLInAppAction

gokulgovind avatar Apr 17 '17 13:04 gokulgovind

@jackpaster have you checked it?

gokulgovind avatar Apr 18 '17 04:04 gokulgovind

It's not updated. I checked it's the same code. Please show me where you changed it. BecAuse I'm very confused

On Tuesday, April 18, 2017, Gokul [email protected] wrote:

@jackpaster https://github.com/jackpaster have you checked it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gokulgovind/GLInAppPurchase/issues/1#issuecomment-294673331, or mute the thread https://github.com/notifications/unsubscribe-auth/ARCMmRgM_wdGlogvwMrK4ZlTPCKmR9Aeks5rxDu6gaJpZM4M_Fug .

jackpaster avatar Apr 18 '17 12:04 jackpaster

Sry, Clone or download the code and check it now. pls.

gokulgovind avatar Apr 20 '17 15:04 gokulgovind

@jackpaster Have you checked the update..? Shall we close this issue.

gokulgovind avatar Nov 17 '17 07:11 gokulgovind