Skip to content

Commit 313a6a8

Browse files
committed
Fixed the PayPay test failure. The PayPal test runs GREEN.
1 parent 09cc80f commit 313a6a8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/test/java/net/authorize/api/controller/sampletest/CreateTransactionTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,16 @@ public void createTransactionWithApplePay()
9292
}
9393

9494
@Test
95-
@Ignore("Temporarily disabled; There is an service-side issue with the firewall configuration.")
9695
public void createTransactionWithPayPal()
9796
{
97+
/*
98+
* Please enable the PayPal feature of your ANet account.
99+
*/
98100
PayPalType payPalData = new PayPalType();
99101
payPalData.setPaypalLc("IT");
100102
payPalData.setPaypalPayflowcolor("FFFF00");
103+
payPalData.setSuccessUrl("https://success.anet.net");
104+
payPalData.setCancelUrl("https://cancel.anet.net");
101105

102106
PaymentType paymentType = new PaymentType();
103107
paymentType.setPayPal(payPalData);

src/test/java/net/authorize/api/controller/test/ApiCoreTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ public void setUp() throws Exception {
253253
encryptedTrackDataOne.setFormOfPayment(keyBlock);
254254

255255
payPalOne = new PayPalType();
256-
payPalOne.setSuccessUrl(getRandomString("http://success.anet.net"));
257-
payPalOne.setCancelUrl(getRandomString("http://cancel.anet.net"));
256+
payPalOne.setSuccessUrl(getRandomString("https://success.anet.net"));
257+
payPalOne.setCancelUrl(getRandomString("https://cancel.anet.net"));
258258
payPalOne.setPaypalLc(getRandomString("Lc"));
259259
payPalOne.setPaypalHdrImg(getRandomString("Hdr"));
260260
payPalOne.setPaypalPayflowcolor(getRandomString("flowClr"));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy