Adding Swedish and Danish site with PayPal and CC gateway. (Not the translation ;) )
// This task can be implemented after transferring English version on common platform. This adding involves CC gateway integration into English instance. But documentation for this task implementation is accessible on www.dibs.no only after buying package. Estimate can be made only on the basis of another similar payment system integration process and serves as approximate.//
Version for testing of payment modules has been installed on http://merkalt.com/test/, for the root instance only (but not for bedrift or idband).
Selection of payment method could be implemented with a help of block of radio buttons. Changing of payment type leads the changing of appearance of form with customer data. If the only one payment method used in application, block of radio buttons does not displayed and this single method used as default.
Payment modules settings stored in DB tables. The table mer_payment_methods contains a list of defined payment methods and main parameters for
correspondent payment modules (e.g. method name, order of appearance in selector block, feature of activity of the method and so on). The feature of
'activity' means that methods which marked as 'active' will be shown in methods selector block. Inactive methods will be omitted. The table mer_payment_methods_details contains description of additional parameters (hidden fields with technical variables and their values), which are used in order to build corresponding payment methods forms with a customer data.
Some settings carried out in settings.inc.php file. First added constant is TABLES_PREFIX, which defines prefix string for all used DB tables of current site instance (since one DB will contain tables for all merkalt instances). The second constant is PAYMENT_TEMPLATES_ABSOLUTE_PATH which defines absolute path to customer data form templates location for all payment methods. Besides, settings for MySQL DB server access are added too.
In order to test PayPal payment method you need to have test account on https://developer.paypal.com/, if you havn't such account yet. Note, that seller ID (account e-mail which is an account identifier at the same time) now should be changed in mer_payment_methods_details table.
// In order to create class for CC payment method documentation on integration required. But it seems the documentation could be received only after buying the one of three packages (see http://www.dibspayment.com/products/dibs-internet/ and http://www.dibspayment.com/products/dibs-internet/addon-packages/the-integration-package/ on this issue).//
Tech docs for integration http://tech.dibs.dk/integration-methods/flexwin/
Package files http://tech.dibs.dk/toolbox/downloads/
Usage example http://www.eget-nettbasert-firma.no/files.rar
I am already a customer with the CC supplier you got the code for. Just as you know.
Also the php file that handels the transfer must be placed on the same address as you see in the “eget-nettbasert-firma” code. I do not remember if it is nettressurs.no/kortbetaling or sparetimegenerator.com/kortbetaling.
Last I just need to remind that the CC gateway (and also paypal) must handle currency. Prices will be in the country currency.
//
I'm not sure I exactly understand what have you meant when said about transaction handling script.
In given example code is used http://www.nettressurs.no/kortbetaling/send.php as form action url for conducting payment through dibs.
Must I use this url for merkalt too (with whole set of form fields) instead of create of my own handling code?
The second issue concern the ability of testing. Probably test mode is already turned off on dibs for your account.
Could I test the results of payment processing somehow?
//
1. You can use your own file as long at it is located in the http://www.nettressurs.no/kortbetaling/ path.
Ok, could I ask you to give me ftp access to www.nettressurs.no in order to look at send.php code? Or may be you would post this script here?
2. I think you can configure your “edition” of send.php to be in “test” mode. In documentation I think you will find a test token.
Yes, I found this option description. But option can be used only if test mode is permitted on DIBS for merchant account. (http://tech.dibs.dk/10-step-guide/10-step-guide/5-your-own-test/)
// I need also constants.php and otc.php scripts, which used by send.php script. I think, you will find their near send.php. Would you send me these scripts, please?//
// Test mode on DIBS now could be turned off. Thank you. //
//
Payment modules on http://merkalt.com/test/ are ready for testing.
In order to test payment modules on merkalt.com/test/ following actions need to be done:
1. Place scripts from http://merkalt.com/test/kortbetaling/ to http://www.nettressurs.no/kortbetaling/ for DIBS payment module. Note, that test mode for DIBS is still turned on in merkalt.com/test/kortbetaling/merkalt_constants.php.
2. You should turn on Payment Data Transfer (PDT) in your PayPal merchant account in order to receive payment data for affiliate program (order identifier and order total).
3. You need also copy Identity Token string, which you will find right under Payment Data Transfer switcher (in your PayPal merchant account) and paste it into includes/settings.inc.php as constant PAYPAL_PDT_AUTH_TOKEN value (instead of existing). Or you would post it here, I'll add it in configuration.
4. Also post here, please, your PayPal seller identifier, which will be used for PayPal payment module testing. I need to add it in PayPal module configuration in MySQL DB.
//
Setting up “Payment Data Transfer” option
In order to turn on PDT, you need log in first. After login you'll see following menu:
Please click on “Profile” link on “My Account” tab. Page with following content will appear:
In “Selling Preferences”column click on “Website Payment Preferences” link.
After page open, please find “Payment Data Transfer (optional)” header. This section contents “Payment Data Transfer” switcher and your “Identity Token” string. Please ensure, that “Payment Data Transfer” selector is set up in “On” position, and copy “Identity Token” string in order to paste it into settings file. Then scroll page down and click on “Save” button to save your changes.
Identity tokens for PayPal accounts (PDT)
andreas@nettressurs.no = oYGMrGYPHMDHamJH0LpyBg_yLr2-t148rMizolk63qMQ6g5F37RoFekELd0
labelyour = 9AUnsnbNonO1ormsGTNlE5uh2K8w6bWJ__2dUHEGe3Kqby2jeAzVnnI92wW
Danish instance has been updated with all last changes. Swedish instance has been uploaded and set up. Both instances are ready to use.
// Bedrift and idband instances have been installed for swedish and danish sites. But there are some enhancements for DIBS scripts required. Language, callbacks paths and currency settings for these sites are different than for merkalt.no.//
// I've made some improvements in DIBS redirection script in order to be able to change currency, language and callback links for Swedish and Danish instances. These settings became adjustable and stored in DB now. But if the currency passed to DIBS is not Norwegian krone, an error message occurs on DIBS payment page. It seems the type(s) of credit cards, which allowed for each individual currency should be defined in this case. So I've turned off DIBS on merkalt.dk and markallt.se in the meantime. I'll try to resolve this problem on test site at first. //
// I had tried to send e-mail with help request to DIBS support twice, but both e-mails was returned back with message which says that my e-emails was considered to be spam and was not delivered. Could you try to send the following message to DIBS support? The content of e-mail was following: //
I have some problem with currencies on using FlexWin.
When I use NOK (578) as payment currency, it works fine.
But using SEK (752), DKK (208) or USD (840) instead of NOK causes error message - “No paytype(s)! Missing test parameter?”.
I've tried to define “paytype” (MC, VISA, MTRO) - the same result.
I've got “No paytype(s)! Missing test parameter?” message again.
What should I to do in order to resolve this situation?
Does it depends someway on some merchant account settings?
PS: I've attached two screen shots. May be, it will be useful.
DIBS01 - without “paytype” defined
DIBS02 - with “paytype” set at MC, VISA or MTRO values.
