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();