Consultor Eletrônico



Kbase P151219: New Pilot paypal COM Object is not working with 4GL/ABL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   18/08/2009
Status: Unverified

SYMPTOM(s):

New Pilot paypal COM Object is not working with 4GL/ABL

PayPal.Payments.Communication.PayflowNETAPI COM object is not working with 4GL/ABL

Pilot paypal COM Object is not finding CreateContext and DestroyContext methods.

FACT(s) (Environment):

Modifying the existing code to adapt the pilot paypal's new COM object
The CreateContext and DestroyContext are the valid methods of existing COM Object PFProCOMControl.PFProCOMControl.1
Progress 9.x
OpenEdge 10.x
Windows

CAUSE:

The CreateContext and DestroyContext methods are deprecated on the PayPal.Payments.Communication.PayflowNETAPI COM object

FIX:

Use *SetParameters* method instead as it is the valid method of PayPal.Payments.Communication.PayflowNETAPI COM Object .

Example:

DEFINE VARIABLE hPFNETAPI AS COM-HANDLE NO-UNDO.

CREATE "PayPal.Payments.Communication.PayflowNETAPI" hPFNETAPI.
hPFNETAPI:SetParameters("pilot-payflowpro.paypal.com", 443, 30, "", 0, "", "", "off", "", "", "", true)
...

RELEASE OBJECT hPFNETAPI
.