YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

problems using DoSirectPayment Options
Shuster324
#1 Posted : Friday, December 10, 2010 6:15:15 PM
Rank: Starting Member

Groups: Registered

Joined: 12/10/2010
Posts: 1
help me please, I'm not a professional developer.
I use SOAP DoDirectPayment API. and get some problems. In sandbox ( https://developer.paypal.com ) I registered two accounts of Business and Personal for testing. When I send money from a personal account to Business account, the balance of Business account is REPLENISHES, but the balance of the sender (a personal account remains the same), viewing payment history to a personal account, I could not see sending money. what's the problem?
Who sends money to a Busness account, if in the DoDirectPayment I specifies the parameters of the Persona account?
Sample code, that I used ( https://cms.paypal.com/c..._DoDirectPayment_cs.txt ) and some API Reference ( https://www.x.com/docs/DOC-1372 )
Tell me please what am I doing wrong ?
profile.APIUsername = "shuste_1291841169_biz_api1.gmail.com";
profile.APIPassword = "1291841188";
profile.APISignature = "A.vcVo5Bz.PWWrlt-4jNmdIpSZHyAzRYJiepZ.YFRtA9N21al.M1js-Z";
profile.Environment = "sandbox";
caller.APIProfile = profile;


// Create the request object.
DoDirectPaymentRequestType pp_Request = new DoDirectPaymentRequestType();
pp_Request.Version = "51.0";

// Add request-specific fields to the request.
// Create the request details object.
pp_Request.DoDirectPaymentRequestDetails = new DoDirectPaymentRequestDetailsType();

pp_Request.DoDirectPaymentRequestDetails.IPAddress = "10.244.43.106";
// pp_Request.DoDirectPaymentRequestDetails.MerchantSessionId = "1X911810264099026";
pp_Request.DoDirectPaymentRequestDetails.PaymentAction = PaymentActionCodeType.Sale; // for default

pp_Request.DoDirectPaymentRequestDetails.CreditCard = new CreditCardDetailsType();

pp_Request.DoDirectPaymentRequestDetails.CreditCard.CreditCardNumber = "4211282081615628"; // buyer credit card
switch ( "Visa" ) //TypeOf credit card
{
case "Visa":
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CreditCardType = CreditCardTypeType.Visa;
break;
case "MasterCard":
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CreditCardType = CreditCardTypeType.MasterCard;
break;
case "Discover":
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CreditCardType = CreditCardTypeType.Discover;
break;
case "Amex":
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CreditCardType = CreditCardTypeType.Amex;
break;
}
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CVV2 = "962";
pp_Request.DoDirectPaymentRequestDetails.CreditCard.ExpMonth = 12;
pp_Request.DoDirectPaymentRequestDetails.CreditCard.ExpYear = 2015;
pp_Request.DoDirectPaymentRequestDetails.CreditCard.ExpMonthSpecified = true;
pp_Request.DoDirectPaymentRequestDetails.CreditCard.ExpYearSpecified = true;
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CardOwner = new PayerInfoType();
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CardOwner.Payer = "shuste_1291841116_per@gmail.com";

pp_Request.DoDirectPaymentRequestDetails.CreditCard.CardOwner.PayerName = new PersonNameType();
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CardOwner.PayerName.FirstName = "Test";
pp_Request.DoDirectPaymentRequestDetails.CreditCard.CardOwner.PayerName.LastName = "User";
pp_Request.DoDirectPaymentRequestDetails.PaymentDetails = new PaymentDetailsType();
pp_Request.DoDirectPaymentRequestDetails.PaymentDetails.OrderTotal = new BasicAmountType();

// NOTE: The only currency supported by the Direct Payment API at this time is US dollars (USD).
pp_Request.DoDirectPaymentRequestDetails.PaymentDetails.OrderTotal.currencyID = CurrencyCodeType.USD;
pp_Request.DoDirectPaymentRequestDetails.PaymentDetails.OrderTotal.Value = amount;

// Execute the API operation and obtain the response.
DoDirectPaymentResponseType pp_response = new DoDirectPaymentResponseType();
pp_response = ( DoDirectPaymentResponseType )caller.Call( "DoDirectPayment", pp_Request );
return pp_response.Ack.ToString();
Sponsor  
 
webmaster_2x
#2 Posted : Friday, July 22, 2011 6:08:23 PM
Rank: Starting Member

Groups: Registered

Joined: 7/22/2011
Posts: 1
almost 8 months without answer!

i have the same problem ...

any idea?


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.274 seconds.