Skip to content

Commit 7ea41db

Browse files
committed
Merge pull request AuthorizeNet#55 from ramittal/master
Adding missing required properties for paypal
2 parents fc752ae + 966ee39 commit 7ea41db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ public void SampleCodeCreateTransactionWithPayPal()
166166

167167
//set up data based on transaction
168168
var transactionAmount = new decimal(80.93);
169-
var payPalData = new payPalType {paypalLc = "IT", paypalPayflowcolor = "FFFF00"};
169+
var payPalData = new payPalType
170+
{
171+
paypalLc = "IT",
172+
paypalPayflowcolor = "FFFF00",
173+
successUrl = PayPalOne.successUrl,
174+
cancelUrl = PayPalOne.cancelUrl,
175+
};
170176

171177
//standard api call to retrieve response
172178
var paymentType = new paymentType { Item = payPalData };

0 commit comments

Comments
 (0)