You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$groupHeader = new GroupHeader('SEPA File Identifier', 'Your company name');
$sepaFile = new CustomerCreditTransferFile($groupHeader);
$transfer = new CustomerCreditTransferInformation(
'0.02', // Amount
'FI1350001540000056', //IBAN of creditor
'Their Corp' //Name of Creditor
);
$transfer->setBic('OKOYFIHH'); // Set the BIC explicitly
$transfer->setRemittanceInformation('Transaction Description');
// Create a PaymentInformation the Transfer belongs to
$payment = new PaymentInformation(
'Payment Info ID',
'FR1420041010050500013M02606', // IBAN the money is transferred from
'PSSTFRPPMON', // BIC
'My Corp' // Debitor Name
);
// It's possible to add multiple Transfers in one Payment
$payment->addTransfer($transfer);
// It's possible to add multiple payments to one SEPA File
$sepaFile->addPaymentInformation($payment);
// Attach a dombuilder to the sepaFile to create the XML output
$domBuilder = DomBuilderFactory::createDomBuilder($sepaFile);
$a = $domBuilder->asXml();
can you please provide some more details, especally how you enabled the xmlrpc and how you executed the example. I tried to reproduce your problem in short, but everything behaved as expected.
I use the code in the example
And here is the xml it output
The "InitgPty" in GroupHeader should be
While here is
Is it a bug for the "InitgPty"?
The text was updated successfully, but these errors were encountered: