Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2011
    Posts
    74
    Thanks
    4
    Thanked 0 Times in 0 Posts

    ecommerce payment module

    Hy,
    I have to instal this module to one of my project and I don't know how to do it.
    The company that provides me this service sent me some "documentation" and on example files, but I can't get it work. Documentation is not an documentation... and I can't figure it out.
    I instaled key on server, and uploaded a certificate, but I think I didn't do something right because I get this error:

    Error while loading X509 public key certificate! Reason:error:02001002:system library:fopen:No such file or directory error:2006D080:BIO routines:BIO_new_file:no such file error:02001002:system library:fopen:No such file or directory error:2006D080:BIO routines:BIO_new_file:no such file

    So, please tell me step by step what I have to do from 0, so I could make it work.

    Here are the files that I have in example sent by the proveider.

    PHP Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <order type="card" id="string64" timestamp="YYYYmmddHHiiss">
        <!-- signature element is mandatory -->
        <signature>XXXX-XXXX-XXXX-XXXX-XXXX</signature>
        <!-- service element is optional -->
        <service>000000-000000-000000</service>
        <!-- url group is optional; use it only if you want to overwrite control panel configurations -->
        <url>
            <!-- confirm is optional; use it only if you want to ovewrite confirm url configured in mobilpay.ro control panel -->
            <confirm>http://www.site_propriu.com/return</confirm>
            <!-- return is optional; use it only if you want to ovewrite return url configured in mobilpay.ro control panel -->
            <return>http://www.site_propriu.com/confirm</return>
        </url>
        <!--  
        invoice element is mandatory ; 
            currency attribute is mandatory (check for available values - at this moment only RON is available)
            ammount attribute is mandatory for order->type="card" if no invoice items are specified
        -->
        <invoice currency="RON" amount="12.09">
            <!-- 
                details element is optional - it describes the payment to be made
            -->
            <details></details>
            <!-- 
                address block is optional
                for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant 
            -->
            <contact_info>
                <!-- 
                    if billing is suplied type attribute is mandatory
                    if type="company" deliver company name in <first_name>, fiscal numer in <fiscal_number> and registration number in <identity_number>
                    if type="person" deliver personal number in <fiscal_number> and identity card number in <identity_number>
                    for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant 
                -->
                <billing type="company|person">
                    <first_name>Prenume</first_name>
                    <last_name>Nume</last_name>
                    <fiscal_number>cnp|cui</fiscal_number>
                    <identity_number>ci|reg</identity_number>
                    <!-- country - ISO code -->
                    <country></country>
                    <county></county>
                    <city></city>
                    <zip_code></zip_code>
                    <address></address>
                    <email></email>
                    <mobile_phone></mobile_phone>
                    <bank></bank>
                    <iban></iban>
                </billing>
                <!-- 
                if shipping data is same as billing data set sameasbilling attribute to 1 
                if shipping data differs from billing data do set sameasbilling attribute at all
                values delivery has to be done in the same manner as for billing element
                -->
                <shipping type="company|person" sameasbilling="1">
                    <first_name>Prenume</first_name>
                    <last_name>Nume</last_name>
                    <fiscal_number>cnp|cui</fiscal_number>
                    <identity_number>ci|reg</identity_number>
                    <!-- country - ISO code -->
                    <country></country>
                    <county></county>
                    <city></city>
                    <zip_code></zip_code>
                    <address></address>
                    <email></email>
                    <mobile_phone></mobile_phone>
                    <bank></bank>
                    <iban></iban>
                </shipping>
            </contact_info>
            <!-- 
            item group is optional
            deliver them only if you want the customer to see in the payment interface all the items that he's gonna pay for 
            -->
            <items>
                <item>
                    <code></code>
                    <name></name>
                    <measurment></measurment>
                    <quantity></quantity>
                    <!-- price should not contain VAT -->
                    <price></price>
                    <!-- VAT is expressed as a sub-unit number (e.g. 0.19)-->
                    <vat></vat>
                </item>
            </items>
            <exchange_rates>
                <rate currency="currencyValue">rateValue</rate>
            </exchange_rates>
        </invoice>
        <!--
            params group is optional
            deliver as many parameters as you want
            all delivered parameters will be returned to you in payment confirmation process 
        -->
        <params>
            <param>
                <name>param1Name</name>
                <value>param1Value</value>
            </param>
            <param>
                <name>param2Name</name>
                <value>param2Value</value>
            </param>
            <!-- ....... -->
            <param>
                <name>paramnName</name>
                <value>paramnValue</value>
            </param>
        </params>
        <!-- 
        mobilpay element is added to the original XML you have sent
        timestamp attribute is the timestamp of the mobilpay server and states the moment the payment has been validated on mobilpay's side
        Your confirm url should reply in XML format, and the response must contain the crc value
        -->
        <mobilpay timestamp="20091013183144" crc="05e49494318c270914bb0e85175e45ce">
            <!--     action element can be "paid", "confirmed", "canceled", "paid_pending", "confirmed_pending"  si "credit"        -->
           <action>confirmed</action>
           <!-- original_amount element stands for the amount on hold upon authentication -->
           <original_amount>100</original_amount>
           <!-- processed_amount element stands for the amount actually being captured (this can be less than the original amount for a partial refund -->
           <processed_amount></processed_amount>
           <!--    purchase element is a numeric identifier for the mobilpay transaction    -->
           <purchase>21</purchase>
           <!--    the error element and its attributes do not have any meaning for a SMS payment    -->
           <error code="0"><![CDATA[Transaction approved]]></error>
       </mobilpay>
    </order>

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <order type="card" id="string64" timestamp="YYYYmmddHHiiss">
    	<!-- signature element is mandatory -->
    	<signature>XXXX-XXXX-XXXX-XXXX-XXXX</signature>
    	<!-- service element is optional -->
    	<service>000000-000000-000000</service>
    	<!-- url group is optional; use it only if you want to overwrite control panel configurations -->
    	<url>
    		<!-- confirm is optional; use it only if you want to ovewrite confirm url configured in mobilpay.ro control panel -->
    		<confirm>http://www.site_propriu.com/return</confirm>
    		<!-- return is optional; use it only if you want to ovewrite return url configured in mobilpay.ro control panel -->
    		<return>http://www.site_propriu.com/confirm</return>
    	</url>
    	<!--  
    	invoice element is mandatory ; 
    		currency attribute is mandatory (check for available values - at this moment only RON is available)
    		ammount attribute is mandatory for order->type="card" if no invoice items are specified
    	-->
    	<invoice currency="RON" amount="12.09">
    		<!-- 
    			details element is optional - it describes the payment to be made
    		-->
    		<details></details>
    		<!-- 
    			address block is optional
    			for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant 
    		-->
    		<contact_info>
    			<!-- 
    				if billing is suplied type attribute is mandatory
    				if type="company" deliver company name in <first_name>, fiscal numer in <fiscal_number> and registration number in <identity_number>
    				if type="person" deliver personal number in <fiscal_number> and identity card number in <identity_number>
    				for order->type="card" mobilpay.ro will ask the user for address informations not supplied by the merchant 
    			-->
    			<billing type="company|person">
    				<first_name>Prenume</first_name>
    				<last_name>Nume</last_name>
    				<fiscal_number>cnp|cui</fiscal_number>
    				<identity_number>ci|reg</identity_number>
    				<!-- country - ISO code -->
    				<country></country>
    				<county></county>
    				<city></city>
    				<zip_code></zip_code>
    				<address></address>
    				<email></email>
    				<mobile_phone></mobile_phone>
    				<bank></bank>
    				<iban></iban>
    			</billing>
    			<!-- 
    			if shipping data is same as billing data set sameasbilling attribute to 1 
    			if shipping data differs from billing data do set sameasbilling attribute at all
    			values delivery has to be done in the same manner as for billing element
    			-->
    			<shipping type="company|person" sameasbilling="1">
    				<first_name>Prenume</first_name>
    				<last_name>Nume</last_name>
    				<fiscal_number>cnp|cui</fiscal_number>
    				<identity_number>ci|reg</identity_number>
    				<!-- country - ISO code -->
    				<country></country>
    				<county></county>
    				<city></city>
    				<zip_code></zip_code>
    				<address></address>
    				<email></email>
    				<mobile_phone></mobile_phone>
    				<bank></bank>
    				<iban></iban>
    			</shipping>
    		</contact_info>
    		<!-- 
    		item group is optional
    		deliver them only if you want the customer to see in the payment interface all the items that he's gonna pay for 
    		-->
    		<items>
    			<item>
    				<code></code>
    				<name></name>
    				<measurment></measurment>
    				<quantity></quantity>
    				<!-- price should not contain VAT -->
    				<price></price>
    				<!-- VAT is expressed as a sub-unit number (e.g. 0.19)-->
    				<vat></vat>
    			</item>
    		</items>
    		<exchange_rates>
    			<rate currency="currencyValue">rateValue</rate>
    		</exchange_rates>
    	</invoice>
    	<!--
    		params group is optional
    		deliver as many parameters as you want
    		all delivered parameters will be returned to you in payment confirmation process 
    	-->
    	<params>
    		<param>
    			<name>param1Name</name>
    			<value>param1Value</value>
    		</param>
    		<param>
    			<name>param2Name</name>
    			<value>param2Value</value>
    		</param>
    		<!-- ....... -->
    		<param>
    			<name>paramnName</name>
    			<value>paramnValue</value>
    		</param>
    	</params>
    </order>
    If you think there are more files that I have to show, please tell me and I will provide.
    Thank you in advance.

  • #2
    New Coder
    Join Date
    Nov 2011
    Posts
    74
    Thanks
    4
    Thanked 0 Times in 0 Posts
    please delete this post

    Thank you


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •