You need to sign in to do that
Don't have an account?
swamy
This is because in paymentprocessor tab , am giving live settings &test settings values are same..
but,if i create a live setting account in paypal it shows so many errors.....
Is any small way to create an account in paypal for livesettings.....and describe me something about the project....
Regarding Kulturra Integration
Hi,am using kulturra app ...but am not getting output...i.e.,by payments if i click the submit it shows an error...i.e.,
This is because in paymentprocessor tab , am giving live settings &test settings values are same..
but,if i create a live setting account in paypal it shows so many errors.....
Is any small way to create an account in paypal for livesettings.....and describe me something about the project....
StatusCode=500 it mean u have some error at the other server
may be the XMl that u send as body or headre is not correct or as per the mention formate
Am giving total permissions for an account in paypal ....but when i create a payments in my salesforce it shows an error i.e.,
"""""""""Transaction failure. This transaction cannot be processed due to an invalid merchant configuration"""""""
r using pay pal rite ??
yaa,am using paypal....am not able to save the payment details for capturing.....
if,you know anything....mail me at:rnswamy229@gmail.com or reply here only...
Hmmmm
actully i also work with it but rite now i don't have code woth me I try to share it with u tmrow
U have two account on pay pal customer & merchent
rite now what i think is u won't configure u r murchent account correctly to recive payment or may be u r using wrong account or cumtomer account in u r code plz... check it
hear is some code for ref
public class CT_PaypalProcessor {
public string amount{get; set;}
public String result {set;get;}
public string FirstName{get; set; }
public string LastName{get; set; }
public string Addy1{get; set; }
public string Addy2{get; set; }
public string Country{get; set; }
public string CardType{get; set; }
public string CardNo{get; set; }
public string expMo{get; set; }
public string expYe{get; set; }
public string CVV{get; set; }
public string city{get; set; }
public string state{get; set; }
public string zip{get; set; }
public string payer{ get; set; }
public string transid {get; set;}
public string message {get; set; }
public string err {get; set; }
public string rawResponse {get; set; }
public CT_PaypalProcessor(){
// city = 'NYC';
state = 'NY';
zip = '23233';
// CVV = '369';
expYe = '2012';
expMo = '03';
// CardNo = '4169826260837999';
// CardType = 'Visa';
// FirstName = 'saurav';
// LastName = 'khurana';
Country = 'US';
// Addy1 = 'G-13 Noida';
Addy2 = '';
payer = 'test@cloudsteer.com';
//amount = '500';
}
public void loadPage() {
system.debug('---------Pay()-----------' + this.pay());
}
public String doDirectPayment()
{
Http h = new Http();
HttpRequest req = new HttpRequest();
String url = 'https://api-3t.sandbox.paypal.com/2.0/';
string un = 'saurav_1331792090_biz_api1.gmail.com';
string pw = '1331792130';
string sig = 'AIfJWYD9IJU3IITi0kVhvZ-J-c2nA5Il5mGirwYMqXMxDT8fB
34iiDOd';
String doDirectRequest;
doDirectRequest = '<soap:Envelope xmlns:soap=' + '\'' + 'http://schemas.xmlsoap.org/soap/envelope/' + '\'' + ' xmlns:xsi=' + '\''+ 'http://www.w3.org/2001/XMLSchema-instance' + '\'' + ' xmlns:xsd=' + '\''+ 'http://www.w3.org/2001/XMLSchema' + '\'' + '>';
doDirectRequest += '<soap:Header><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents">';
doDirectRequest += '<Username>' + un + '</Username><ebl:Password xmlns:ebl="urn:ebay:apis:eBLBaseComponents">' + pw;
doDirectRequest += '</ebl:Password><Signature>' + sig + '</Signature>';
doDirectRequest += '</Credentials></RequesterCredentials></soap:Header><soap:Body><DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI">';
doDirectRequest += '<DoDirectPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">1.00</Version>';
doDirectRequest += '<DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents">';
doDirectRequest += '<PaymentAction>Sale</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">' + amount + '</OrderTotal>';
doDirectRequest += '<ShipToAddress><Name>' + FirstName + ' ' + LastName + '</Name><Street1>' + Addy1 + '</Street1><Street2>' +Addy2 + '</Street2>';
doDirectRequest += '<CityName>' + city + '</CityName><StateOrProvince>' + state + '</StateOrProvince><PostalCode>' + zip + '</PostalCode>';
doDirectRequest += '<Country>' + country + '</Country></ShipToAddress>';
doDirectRequest += '</PaymentDetails><CreditCard><CreditCardType>' + CardType + '</CreditCardType><CreditCardNumber>' + CardNo + '</CreditCardNumber>';
doDirectRequest += '<ExpMonth>' + expMo + '</ExpMonth><ExpYear>' + expYe + '</ExpYear><CardOwner><PayerStatus>verified</PayerStatus>';
doDirectRequest += '<PayerName><FirstName>' + FirstName+ '</FirstName><LastName>' + LastName + '</LastName></PayerName><PayerCountry>' + country + '</PayerCountry>';
doDirectRequest += '<Address><Street1>' + Addy1 + '</Street1><Street2>' + Addy2 + '</Street2><CityName>' + city + '</CityName>';
doDirectRequest += '<StateOrProvince>' + state + '</StateOrProvince><Country>' + country + '</Country><PostalCode>' + zip + '</PostalCode></Address>';
doDirectRequest += '</CardOwner><CVV2>' + CVV + '</CVV2></CreditCard></DoDirectPaymentRequestDetails>';
doDirectRequest += '</DoDirectPaymentRequest></DoDirectPaymentReq></soap:Body></soap:Envelope>';
req.setBody(doDirectRequest);
req.setEndpoint(url);
req.setMethod('POST');
req.setHeader('Content-length', '1753' );
req.setHeader('Content-Type', 'text/xml;charset=UTF-8');
req.setHeader('SOAPAction','');
req.setHeader('Host','api-aa.sandbox.paypal.com');
HttpResponse res = h.send(req);
String xml = res.getBody();
rawResponse = xml;
system.debug('---------xml-----------' + rawResponse);
XmlStreamReader reader = res.getXmlStreamReader();
result = readXMLResponse(reader,'Ack');
system.debug('---------result-----------' + result);
reader = res.getXmlStreamReader();
err = readXMLResponse(reader, 'LongMessage');
if (result == 'Success')
{
reader = res.getXmlStreamReader();
transid = readXMLResponse(reader, 'TransactionID');
system.debug('---------transid-----------' + transid);
}
else
{
result = err;
}
return result;
}
public String readXMLResponse(XmlStreamReader reader, String sxmltag)
{
string retValue; // Read through the XML
while(reader.hasNext())
{
if (reader.getEventType() == XmlTag.START_ELEMENT)
{
if (reader.getLocalName() == sxmltag) {
reader.next();
if (reader.getEventType() == XmlTag.characters)
{
retValue = reader.getText();
}
}
}
reader.next();
}
return retValue;
}
public String pay(){
err = '';
if (FirstName == '')
err = err + 'You must enter a First Name.\n';
if (LastName == '')
err = err + 'You must enter a Last Name.\n';
if (Addy1 == '')
err = err + 'You must enter an Address.\n';
if (city == '')
err = err + 'You must enter a City.\n';
if (state == '')
err = err + 'You must enter a State.\n';
if (zip == '')
err = err + 'You must enter a Zip.\n';
if (CardNo == '')
err = err + 'You must enter a Credit Card Number.\n';
if (expMo.length() != 2)
err = err + 'Expiration month must be in the format MM.\n';
if (expYe.length() != 4)
err = err + 'Expiration year must be in the format YYYY.\n';
if (amount == '0')
{
err += 'Amount 0 can not process.\n';
message = err;
}
message = err;
if (err == '')
{
message = doDirectPayment();
}
if (message == 'Success')
{
}
else
{
//pr = null;
}
return message;
}
}
Please make sure you use valid data while working with external systems. I believe if you use valid card details, this will definately work.
also plz have a look into this
Setting up a PayPal Business Account & API Access
Step 1: Set Up a Verified PayPal Business Account
NB: If you already have a PayPal Business or PayPal Pro account please skip down to ‘Step 2: Set Up API Access’ below.
Customers who don’t have a PayPal account:
Customers who already have a Personal or Premier PayPal account:
Step 2: Set Up API Access
Once you have created your PayPal business account you need to allow API access to Litmos as a third party integrator so that we can initiate the PayPal transactions on your behalf.
The API access instructions for PayPal Pro accounts may vary slightly (there are a few more screens to click through) but you will achieve the same result.
it's good .....but ,i can implented by Kulturra App via AppExchange Market Place..........So,what can i do?...................
Okz...
sry
if it the app which is giving error u contact the app owner
& also i think u configure the murchent account in paypal rite ??
If yes
Then there u did some mistake in conf
there are guide able able online for conf paypal account plz go throw it
Or contact paypal they provide u guide to make murchent account in test envorment of paypal
paypal have the sendbox of paypal which is copy or rela one
Hi,
Now am able to create Test account Payments..... but am not able to create Liveuser payment's.....it shows some error....
""""Transaction failure. This transaction cannot be processed due to an invalid merchant configuration"""""""""
What is this......
as it mention that
"invalid merchant configuration"
as far as i can unserstand the merchant account is not configure properly may be the API call is not enable for the merchant account
Yaa,that's correct....but how to overcome that....is anything .......for this..i.e., how to create a merchant account in paypal....and how to see the API credentails for that merchant....Could you give the path.....
merchant account is ypur account on paypal which is reciving payments
go throw the follwoing steps also as u have the account i live u can contact the paypal to help & guide u to setup merchant account configration
also plz have a look into this
Setting up a PayPal Business Account & API Access
Step 1: Set Up a Verified PayPal Business Account
NB: If you already have a PayPal Business or PayPal Pro account please skip down to ‘Step 2: Set Up API Access’ below.
Customers who don’t have a PayPal account:
Customers who already have a Personal or Premier PayPal account:
Step 2: Set Up API Access
Once you have created your PayPal business account you need to allow API access to Litmos as a third party integrator so that we can initiate the PayPal transactions on your behalf.
The API access instructions for PayPal Pro accounts may vary slightly (there are a few more screens to click through) but you will achieve the same result.