Announcement Announcement Module
Collapse
No announcement yet.
Integration with cybersource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integration with cybersource

    While running the integration cybs test I am getting an exception as below

    ----------------------------------------------------
    T E S T S
    -------------------------------------------------------
    Running org.springframework.payment.cybs.gateway.CybsGatew ayClientIntegrationTests
    DEBUG: com.cybersource.ws.client.Client - TRANSTART =======================================
    DEBUG: com.cybersource.ws.client.Client - {useHttpClient=true, enableLog=true, sendToProduction=false, keysDirectory=/home/omsingh/.ssh/, timeout=60000, merchantID=omatcodegr, targetAPIVersion=1.28}
    DEBUG: com.cybersource.ws.client.Client - REQUEST purchaseTotals_currency=USD
    card_expirationYear=xxxx
    clientLibrary=Java Basic
    billTo_state=CA
    billTo_city=Mountain View
    shipTo_lastName=xxx
    billTo_street1=1295xxxxxxxxxxxxRoad
    shipTo_postalCode=94401
    shipTo_street1=10xxxxxxxxxxet
    shipTo_city=San Mateo
    item_0_unitPrice=12.34
    billTo_phoneNumber=65xxxxxxxx00
    card_expirationMonth=xx
    shipTo_country=US
    shipTo_firstName=xxxx
    shipTo_state=CA
    billTo_firstName=xxxx
    billTo_lastName=xxx
    billTo_postalCode=94043
    billTo_email=noboxxxxxxxxxxxxxx.com
    clientEnvironment=Linux/2.6.39-1.el6.x86_64/Oracle Corporation/1.7.0
    merchantID=omatcodegr
    item_1_unitPrice=56.78
    ccAuthService_run=true
    billTo_ipAddress=10.7.7.7
    clientLibraryVersion=5.0.2
    merchantReferenceCode=intTest123
    billTo_country=US
    card_accountNumber=4111xxxxxxxx1111

    DEBUG: com.cybersource.ws.client.Client - INFO Signing request...
    DEBUG: com.cybersource.ws.client.Client - EXCEPTION ClientException details:
    innerException:
    SignException:
    com.cybersource.security.exception.SecuritySystemE xception: Security Data : Cannot decode the BER of the PFX.
    at com.cybersource.security.identity.Identity.importI dentityAsPKCS12(Identity.java:451)
    at com.cybersource.ws.client.Signature.cacheIdentity( Signature.java:177)
    at com.cybersource.ws.client.Signature.getIdentity(Si gnature.java:151)
    at com.cybersource.ws.client.Signature.sign(Signature .java:64)
    at com.cybersource.ws.client.Client.soapWrapAndSign(C lient.java:200)
    at com.cybersource.ws.client.Client.runTransaction(Cl ient.java:103)
    at org.springframework.payment.cybs.gateway.CybsGatew ayClient.execute(CybsGatewayClient.java:74)
    at org.springframework.payment.cybs.gateway.CybsGatew ayClientIntegrationTests.testExecuteWithProperties File(CybsGatewayClientIntegrationTests.java:55)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.junit.runners.model.FrameworkMethod$1.runRefle ctiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallabl e.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExpl osively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod .evaluate(InvokeMethod.java:20)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:76)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner. java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRu nner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentR unner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRu nner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRu nner.java:184)
    at org.junit.internal.runners.statements.RunBefores.e valuate(RunBefores.java:28)
    at org.junit.runners.ParentRunner.run(ParentRunner.ja va:236)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.exe cute(JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.ex ecuteTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.in voke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.maven.surefire.util.ReflectionUtils.inv okeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$P roviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.i nvokeProvider(SurefireStarter.java:175)
    at org.apache.maven.surefire.booter.SurefireStarter.r unSuitesInProcessWhenForked(SurefireStarter.java:1 07)
    at org.apache.maven.surefire.booter.ForkedBooter.main (ForkedBooter.java:68)


    I have registered to cybersource and have access to test account.

    Regards
    Om

  • #2
    I resolved the issue, was using the wrong certificate from cybersource earlier.

    Comment

    Working...
    X