Business-OnlinePayment-Litle

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    Return the introspection hash for BOP 3.x

 set_defaults

 test_transaction

    Get/set the server used for processing transactions. Possible values
    are Live, Certification, and Sandbox Default: Live

      #Live
      $self->test_transaction(0);
    
      #Certification
      $self->test_transaction(1);
    
      #Sandbox
      $self->test_transaction('sandbox');
    
      #Read current value
      $val = $self->test_transaction();

 map_fields

 format_misc_field

    A new method not directly supported by BOP. Used internally to
    guarantee that XML data will conform to the Litle spec. field - The
    hash key we are checking against maxLen - The maximum length allowed
    (extra bytes will be truncated) minLen - The minimum length allowed
    errorOnLength - boolean 0 - truncate any extra bytes 1 - error if the
    length is out of bounds isRequired - boolean 0 - ignore undefined
    values 1 - error if the value is not defined

     $tx->format_misc_field( \%content, [field, maxLen, minLen, errorOnLength, isRequired] );
     $tx->format_misc_field( \%content, ['amount',   0,     12,             0,          0] );

 format_amount_field

    A new method not directly supported by BOP. Used internally to change
    amounts from the BOP "5.00" format to the format expected by Litle
    "500"

    $tx->format_amount_field( \%content, 'amount' );

 format_phone_field

    A new method not directly supported by BOP. Used internally to strip
    invalid characters from phone numbers. IE "1 (800).TRY-THIS" becomes
    "18008788447"

    $tx->format_phone_field( \%content, 'company_phone' );

 map_request

    Converts the BOP data to something that Litle can use.

 chargeback_retrieve_support_doc

    A new method not directly supported by BOP. Retrieve a currently
    uploaded file

     $tx->content(
      login       => 'testdrive',
      password    => '123qwe',
      merchantid  => '123456',
      case_id     => '001',
      filename    => 'mydoc.pdf',
     );
     $tx->chargeback_retrieve_support_doc();
     $myFileData = $tx->{'fileContent'};

 chargeback_delete_support_doc

    A new method not directly supported by BOP. Delete a currently uploaded
    file. Follows the same format as chargeback_retrieve_support_doc

 chargeback_upload_support_doc

    A new method not directly supported by BOP. Upload a new file

     $tx->content(
      login       => 'testdrive',
      password    => '123qwe',
      merchantid  => '123456',
      case_id     => '001',
      filename    => 'mydoc.pdf',
      filecontent => $binaryPdfData,
      mimetype    => 'application/pdf',
     );
     $tx->chargeback_upload_support_doc();

 chargeback_replace_support_doc

    A new method not directly supported by BOP. Replace a previously
    uploaded file. Follows the same format as chargeback_upload_support_doc

 chargeback_list_support_docs

    A new method not directly supported by BOP. Return a hashref that
    contains a list of files that already exist on the server.

     $tx->content(
      login       => 'testdrive',
      password    => '123qwe',
      merchantid  => '123456',
      case_id     => '001',
     );
     my $ret = $tx->chargeback_list_support_docs();

    Currently this returns in this format

     $ret = {
       'file1' => {},
       'file2' => {},
     };

    Litle does not currently send any file attributes. However the hash is
    built for future expansion.

 add_item

    A new method not directly supported by BOP. Interface to adding
    multiple entries, so we can write and interface with batches

     my %content = (
       action          =>  'Account Update',
       card_number     =>  4111111111111111,
       expiration      =>  1216,
       customer_id     =>  $card->{'uid'},
       invoice_number  =>  123,
       type            =>  'VI',
       login           =>  $merchant->{'login'},
     );
     $tx->add_item( \%content );

 create_batch

    A new method not directly supported by BOP. Send the current batch to
    Litle.

     $tx->add_item( $item1 );
     $tx->add_item( $item2 );
     $tx->add_item( $item3 );
    
     my $opts = {
      login       => 'testdrive',
      password    => '123qwe',
      merchantid  => '123456',
      batch_id    => '001',
      method      => 'https', # sftp or https
      ftp_username=> 'fred',
      ftp_password=> 'pancakes',
     };
    
     $tx->content();



( run in 0.927 second using v1.01-cache-2.11-cpan-b16cb0d3907 )