Hi i am creating a windows phone 7.1 application, which requires in app purchases
As WP7 does not have a specific in app purchase SDK like iphone does, can we use paypal for in app purchases,
I am new to windows phone 7 and paypal API
like open a mobile paypal site in browsercontrol when i click on payment button and get the payment done by the user and if the payment success return success message or if fail return failure message.
i do not think Movend is a best option, as we have to maintain products database in their website also which i don’t want.
Here is answer for my question
Paypal does not have specific sdk for WP7, so i tried to solve above the problem in following way
BrowserControl_Navigatedfor that controlstring.Format("http://localhost:62744/PaymentGateway/ExpressCheckout.aspx?ItemName={0}&Number={1}&Desc={2}&ItemPrice={3}&ItemUrl={4}", ItemName, ItemNumber, ItemDescription, ItemPrice, ItemUrl).Replace(" ", "+");BrowserControl.Navigate(new Uri(url));BrowserControl_Navigatedevent add conditions to check the paypal success and failure urlsif the condition success navigate to success page in WP7
UPDATE:
Above code will redirect the page to PayPal mobile page, it’s not good as iOS login page in look and feel. We can get PayPal iOS page with a small trick in windows phone 7
By changing the headers(user-agent of client) of the browser will give us the PayPal iPhone page
Like below