Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:14:52+00:00 2026-06-07T07:14:52+00:00

Hi i am creating a windows phone 7.1 application, which requires in app purchases

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:14:55+00:00Added an answer on June 7, 2026 at 7:14 am

    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

    1. Create a website which will take item prices/details in querystring
    2. implement ExpressCheckout in that website only. I’ve implemented using paypal Sandbox Web service
    3. Place a browser control in the WP7 app and add an event BrowserControl_Navigated for that control
    4. Create the Url for for our own website like string.Format("http://localhost:62744/PaymentGateway/ExpressCheckout.aspx?ItemName={0}&Number={1}&Desc={2}&ItemPrice={3}&ItemUrl={4}", ItemName, ItemNumber, ItemDescription, ItemPrice, ItemUrl).Replace(" ", "+");
    5. Call the Website in our WP7 app code BrowserControl.Navigate(new Uri(url));
    6. After completion of the payment paypal service will redirect the app to a success url which we mentioned otherwise redirect to failure url
    7. in the BrowserControl_Navigated event add conditions to check the paypal success and failure urls
    8. if the condition success navigate to success page in WP7

      if (BrowserControl.Source.ToString().Contains( "http://localhost:62744/PaymentGateway/Success.html"))
           NavigationService.Navigate(new Uri("/Success.xaml", UriKind.Relative));
      

    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

      string header = "User-Agent:Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7";
    
      string url = string.Format("http://10.11.32.211:88/PaymentGateway/ExpressCheckout.aspx?ItemName={0}&Number={1}&Desc={2}&ItemPrice={3}&ItemUrl={4}", ItemName, ItemNumber, ItemDescription, ItemPrice, ItemUrl).Replace(" ", "+");
    
      BrowserControl.IsScriptEnabled = true;
    
      BrowserControl.Navigate(new Uri(url),null, header);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a windows phone application, which need to store some data in
I'm creating a Windows Phone 7 app which allow to listen a web radio.
I am playing around with creating a Windows Phone application. I have been watching
I am creating a Windows Phone application and I have a problem with a
I have a Windows Phone 7.1 application in which I got three pages, and
we are creating a windows Phone 7.5 application, this application is developed for specific
I am creating an app in Windows Phone which is basically an organizer for
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
I'm creating a Windows Console application written in VB.NET and I have a few
I am creating a windows application which needs to send some sms to mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.