|
Rank: Starting Member
Groups: Registered
Joined: 8/1/2005 Posts: 5 Location: ,
|
hi.
just wanted to know if anyone has implemented paypal with mach ii. i'm very lost on how to get started, for example i take this code example from the PayPal MX 1.0 files:
<!--- for a single request call --->
<cfset myForm = createObject("component","payPalPDT").init("sandbox","paypal.xml").getForm("productOfMine")>
<cfoutput>#myForm#</cfoutput>
but i don't see a "payPalPDT" component. am i right in thinking that it gets constructed in the paypal.xml file? what am i missing?
any helpful tips are appreciated.
thanks.
fumeng.
|
|
Rank: Starting Member
Groups: Registered
Joined: 8/1/2005 Posts: 5 Location: ,
|
quick update: i believe i was going about it in the wrong way and i'm a lot closer now. here's the code i am using to now instantiate the PayPalService.cfc. the only problem now is that it is having problems finding the value specified in 'xmlConfigPath' and i'm not sure why. i'm giving it a relative path, but it's still not working. does anything jump out at anyone??
<cffunction name="startPayPal" access="public" returntype="void" output="true" displayname="Instantiate PayPal Service" hint="I start the PayPal Service"> <cfargument name="event" type="MachII.framework.Event" required="yes" displayname="Event" hint="I am the current event." /> <cfset PayPalSVC = createObject("component","PayPalService").init("sandbox","paypal.xml")> </cffunction>
any tips are appreciated. thanks for following along.
fumeng.
|