Business-OnlinePayment-Ogone

 view release on metacpan or  search on metacpan

README.pod  view on Meta::CPAN


Ogone's support helpdesk will answer promptly within a day, also for test accounts. You will need
to contact them if you would like to add some features like for example 3d-secure. Most of my
helpdesk request have been resolved in matter of days.

=head2 Credentials

You need to create a subaccount to access the API.  Use that subaccount as the USERID or login.
You will need to login with the password of the api user.

If you try to submit requests with a bad username or password your account can get blocked.
To unblock your account you should go into the users panel and reactivate the account.

=head2 Configuration Parameters

Configure the L<Ogone Test Backend|https://secure.ogone.com/ncol/test/frame_ogone.asp> or
L<Ogone Prod Backend|https://secure.ogone.com/ncol/prod/frame_ogone.asp> using the following settings:


=head3 Technical information > Your technical settings > Global security parameters 

lib/Business/OnlinePayment/Ogone.pm  view on Meta::CPAN


Ogone's support helpdesk will answer promptly within a day, also for test accounts. You will need
to contact them if you would like to add some features like for example 3d-secure. Most of my
helpdesk request have been resolved in matter of days.

=head2 Credentials

You need to create a subaccount to access the API.  Use that subaccount as the USERID or login.
You will need to login with the password of the api user.

If you try to submit requests with a bad username or password your account can get blocked.
To unblock your account you should go into the users panel and reactivate the account.

=head2 Configuration Parameters

Configure the L<Ogone Test Backend|https://secure.ogone.com/ncol/test/frame_ogone.asp> or
L<Ogone Prod Backend|https://secure.ogone.com/ncol/prod/frame_ogone.asp> using the following settings:


=head3 Technical information > Your technical settings > Global security parameters 

lib/Business/OnlinePayment/Ogone/Status.pm  view on Meta::CPAN

		'50001178' => "Card Number Empty",
		'50001179' => "CVC too long",
		'50001180' => "CVC contains non-numeric info",
		'50001181' => "Expiration date contains non-numeric info",
		'50001182' => "Invalid expiration month",
		'50001183' => "Expiration date must be in the future",
		'50001184' => "SHA Mismatch",
		'60000001' => "account number unknown",
		'60000003' => "not credited dd-mm-yy",
		'60000005' => "name/number do not correspond",
		'60000007' => "account number blocked",
		'60000008' => "specific direct debit block",
		'60000009' => "account number WKA",
		'60000010' => "administrative reason",
		'60000011' => "account number expired",
		'60000012' => "no direct debit authorisation given",
		'60000013' => "debit not approved",
		'60000014' => "double payment",
		'60000018' => "name/address/city not entered",
		'60001001' => "no original direct debit for revocation",
		'60001002' => "payer's account number format error",
		'60001004' => "payer's account at different bank",
		'60001005' => "payee's account at different bank",
		'60001006' => "payee's account number format error",
		'60001007' => "payer's account number blocked",
		'60001008' => "payer's account number expired",
		'60001009' => "payee's account number expired",
		'60001010' => "direct debit not possible",
		'60001011' => "creditor payment not possible",
		'60001012' => "payer's account number unknown WKA-number",
		'60001013' => "payee's account number unknown WKA-number",
		'60001014' => "impermissible WKA transaction",
		'60001015' => "period for revocation expired",
		'60001017' => "reason for revocation not correct",
		'60001018' => "original run number not numeric",

t/20_account.t  view on Meta::CPAN

cmp_deeply(\%test, { override_base_args_with(foobar=> 123) }, "override_base_args_with method test HASH");
cmp_deeply(\%test, { override_base_args_with({foobar=> 123}) }, "override_base_args_with method test REF");

#########################################################################################################
# test obvious failures (wrong pass, wrong cardno, wrong cvc)
#########################################################################################################
$base_args{action} = 'authorization only';

SKIP: { 
    skip "this test will block your account if you run it too frequently", 3;
    # NOTE: if account is blocked, you can reenable it in the 'Users' section of the Ogone backend.
    $tx = new_test_tx();

    $tx->content(override_base_args_with(password=>123456)); eval { $tx->submit() }; 

        like($@, qr/^$/, "there should have been no warnings");
        like($tx->error_message, qr/Some of the data entered is incorrect. Please retry./, "error message must be set");
        like($tx->result_code, qr/50001119/, "should return wrong password code");
}




( run in 0.582 second using v1.01-cache-2.11-cpan-49f99fa48dc )