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 3950370
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:36:14+00:00 2026-05-20T01:36:14+00:00

I was wondering if PayPal has a payment service which allows the users to

  • 0

I was wondering if PayPal has a payment service which allows the users to enter their credit card details on my site (the user wouldn’t even be aware they are paying by paypal). I then need to make sure it handles repeat payments and refunds. Basically i need to create a paypal service which implements the following:

public interface IPaymentService {
    Response ValidateCard(NetworkCredential credential, int transactionID, decimal amount, string ipAddress, CardDetails cardDetails, Address billingAddress, Options options);
    Response RepeatCard(NetworkCredential credential, int oldTransactionID, int newTransactionID, decimal amount);
    Response RefundCard(NetworkCredential credential, int refundedTransactionID, int newTransactionID, decimal amount);
}

public class Address {
    public virtual string Address1 { get; set; }
    public virtual string Address2 { get; set; }
    public virtual string Address3 { get; set; }
    public virtual string Town { get; set; }
    public virtual string County { get; set; }
    public virtual Country Country { get; set; }
    public virtual string Postcode { get; set; }
}

public class CardDetails {
    public string CardHolderName { get; set; }
    public CardType CardType { get; set; }
    public string CardNumber { get; set; }
    public int ExpiryDateMonth { get; set; }
    public int ExpiryDateYear { get; set; }
    public string IssueNumber { get; set; }
    public string Cv2 { get; set; }
}

public class Response {
    public bool IsValid { get; set; }
    public string Message { get; set; }
}

public class Options {
    public bool TestStatus { get; set; }
    public string Currency { get; set; }
}

Usually this is quite trivual with other other payment providers eg PayPoint (soap service) and SagePay.

Reading the paypal documentation is giving me a headache so i thought i’d ask here. Really appreciate the help. Thanks

  • 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-05-20T01:36:14+00:00Added an answer on May 20, 2026 at 1:36 am

    Yes they do. Check out this documentation.

    The direct payment api allows you to enter the card holder’s info and then process it through the paypal system.

    https://www.paypal.com/cgi-bin/webscr?cmd=_dcc_hub-outside

    //process payment
                Paypal toPayment = new Paypal();
                toPayment.BillingAddress = new Address(txt_BillingAddr1.Text, txt_BillingAddr2.Text, txt_BillingCity.Text, ddl_BillingState.SelectedValue, txt_BillingZip.Text, "");
                toPayment.BillingCountry = com.paypal.soap.api.CountryCodeType.US;
                toPayment.BillingFName = txt_BillingFName.Text;
                toPayment.BillingLName = txt_BillingLName.Text;
                toPayment.BillingMName = txt_BillingMName.Text;
                toPayment.BillingPhoneNumber = txt_BillingPhone.Text;
                toPayment.BillingSuffix = txt_BillingSuffix.Text;
                toPayment.ContactPhoneNumber = txtPhone.Text;
                toPayment.CreditCardExpireMonth = Convert.ToInt32(ddl_CCExpireMonth.SelectedIndex + 1);
                toPayment.CreditCardExpireYear = Convert.ToInt32(ddl_CCExpireYear.SelectedValue);
                toPayment.CreditCardNumber = txt_CreditCard.Text;
                toPayment.CreditCardSecurityCode = txt_CCID.Text;
                switch (lst_CCTypes.SelectedValue)
                {
                    case "Visa":
                        toPayment.CreditCardType = com.paypal.soap.api.CreditCardTypeType.Visa;
                        break;
                    case "MasterCard":
                        toPayment.CreditCardType = com.paypal.soap.api.CreditCardTypeType.MasterCard;
                        break;
                    case "AmericanExpress":
                        toPayment.CreditCardType = com.paypal.soap.api.CreditCardTypeType.Amex;
                        break;
                    case "Discover":
                        toPayment.CreditCardType = com.paypal.soap.api.CreditCardTypeType.Discover;
                        break;
                }
                toPayment.UserHostAddress = Request.UserHostAddress;
                toPayment.OrderTotal = StaticMethods.getDecimal(lbl_TotalPrice_cout.Text, 0);
    
                //set API Profile
                toPayment.APIProfile = Master.PayPal_API_Profile;
    
                DoDirectPaymentResponseType toResponse = new DoDirectPaymentResponseType();
                toResponse = toPayment.processDirectPaymentTransaction();
    

    Here is a little bit more for you… this is actual code from an actual production site that i work on that takes payments via paypal

    toResponse contains an Ack property…. so you can do something like

    switch(toResponse.Ack)
    {
    case AckCodeType.Failure;
         // The card is bad. void transaction.
         lblResponse = toResponse.Errors[0].LongMessage;
         Break;
    case AckCodeType.Success
         // The card is good.  Go forward with process
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if payment second confirmation on my site is required by Paypal regulations
I want to offer credit card payment on my website and was wondering whats
I need to process credit card payments on an app that provides a service
I am wondering if this can be done easily. I am doing some paypal
I'm planning to use paypal payment method together with ubercart, in order to not
I'm trying to implement a payment system using the new PayPal API (Adaptive Payment).
Wondering if anyone has a good solution for this. My app is displaying nothing
I have a bit of experience setting up online payment systems that accept credit
working on my paypal integration and its going great - I was wondering that
I am just wondering here.. Aren't the PayPal buttons that are dynamically created, very

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.