Files
VITEC-website/packages/vitec/Classes/Forms/Delivery/SalesforceDelivery.php

26 lines
841 B
PHP
Executable File

<?php
declare(strict_types=1);
namespace Evomedien\Vitec\Forms\Delivery;
/**
* Salesforce delivery — PREPARED STUB.
*
* The old website posted the contact form to Salesforce Web-to-Lead
* (custom field ids like 00N3z00000DCiyV). When credentials / the target
* setup are decided, implement deliver() here (Web-to-Lead POST or REST
* API) including the camelCase -> Salesforce field mapping. Until then any
* submission with delivery=salesforce is stored with status "failed" and
* this message — no data is lost.
*/
final class SalesforceDelivery implements DeliveryInterface
{
public function deliver(string $formKey, array $payload, array $settings): void
{
throw new \RuntimeException(
'Salesforce delivery is prepared but not configured yet — submission kept in the log.'
);
}
}