Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help With Credit Card Processing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00545481
Message ID:
00628775
Vues:
36
Marius,
Is this a web app? If so, is it a VFP mtdll? In that case, I'm hoping COMRETURNERROR would allow your app to continue functioning after the error. You should be able to program a validation for the 1.) problem.

I haven't used CyberCash for a while since we're using Verisign PayFlow now. If you continue to have serious problems with CyberCash, you may want to try it.

Good luck!
>Hi Claude,
>
>Everything ok with the code below. Except when there are communication or other problems. In that case it crashes with a C0000005 exception. I found two situations when this happens:
>1. using out of date test ccid and key (Verisign changed the "test-mck" ccid revently);
>2. network cable disconnected (wanted to simulate network connectivity problems).
>The line where it happens:
>
>result=SockObj.SendCCServer(sPaymentURL, sConfigLoc, Input)
>
>The log file reads something like:
>
>1.
>[...]
>Payment Service Message: Timed out waiting for a response from the server.
>
>Internet Session Message: MCK_E_INTERNET_EXCEPTION (0x800400DD); State: Sending request (4); Internet Error: The connection with the server has been terminated. (12030); Internet Status: Closing connection (50); Last System Error: (0x00002EFE).
>[...]
>METHOD:-- 2002/02/28 16:22:06.186 IsocketObj::SendCCServer() returning MCK_E_TIMEOUT (0x800400F0)
>[...]
>
>
>
>2.
>[...]
>Internet Session Message: MCK_E_INTERNET_EXCEPTION (0x800400DD); State: Sending request (4); Internet Error: The attempt to connect to the server failed. (12029); Internet Status: Name resolved (11); Last System Error: (0x00002EFD).
>[...]
>METHOD:-- 2002/03/02 10:06:13.384 IsocketObj::SendCCServer() returning MCK_E_INTERNET_EXCEPTION (0x800400DD)
>[...]
>
>According to CyberCash's docummentation, MCK_E_INTERNET_EXCEPTION (0x800400DD) is an "Unexpected exception" that "ocurred in WinInet". I thought in case of any communication problems, the call to SendCCServer() should properly timeout, but not cause a C0000005 crash, so I can do some error handling.
>
>Any thoughts?
>
>Thank you,
>
>Marius Muntean
>Advanced Utility Systems
>
>
>>Andreas,
>>
>>We've since moved on to Verisign Payflow(they now own CyberCash),but, if you're going to use CashRegister, give this a try:
>>Function Cybercash
>>Input= CreateObject('CyberCashMCK.MessageBlock')
>>sConfigLoc = 'c:\cybercash\merchant_conf'
>>
>>sCommand='mauthcapture'
>>sPaymentURL='http://cr.cybercash.com/cgi-bin/cr21api.cgi/mauthcapture'
>>input.add('card-number', m.cnum)
>>input.add('card-exp', m.cexpir)
>>input.add('card-name', m.first+' '+m.last)
>>input.add('card-address', m.add1)
>>input.add('card-city', m.city)
>>input.add('card-state', m.stat)
>>input.add('card-zip', m.zip)
>>input.add('card-country', 'USA')
>>input.add('order-id', m.unique)
>>input.add('amount', m.totfee)
>>SockObj=CreateObject('CyberCashMCK.socket.1')
>>result=SockObj.SendCCServer(sPaymentURL, sConfigLoc, Input)
>>lcResult=result.write
>>
>>* unencode URL encoded string
>>lcResults=URLDecode(lcResult)
>>RETURN lcResults
>>
>>
>>>Hi Claude,
>>>
>>>Could you please give me some advice as to how can I integrate with CyberCash.
>>>We have a client that uses Cybercash's CashRegister for their webstore, and I would like to know if it's possible to use it as a payment-processing engine. I was checking the documentation available on CyberCash's web site, and I think I should use the CYCHCMK.DLL included with their Merchant Connection Kit, but I'm not sure on how to adjust the C/ASP/VB examples for Foxpro.
>>>
>>>To be more specific, where should the DLL reside and be registered - on the web server?
>>>
>>>What does the "Server" part in
>>>
>>>Variable = Server.CreateObject("CyberCashMCK.MessageBlock")
>>>
>>>stand for?
>>>
>>>Thank you in advance,
>>>
>>>Marius Muntean
>>>Advanced Utility Systems
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform