refactor(webmonetization): update value tag to follow new WM proposal

This commit is contained in:
Yassine Doghri 2022-11-07 16:00:40 +00:00
parent 0bb1c9635a
commit 5227b5fc29
1 changed files with 2 additions and 3 deletions

View File

@ -90,11 +90,10 @@ if (! function_exists('get_rss_feed')) {
if ($podcast->payment_pointer !== null) {
$valueElement = $channel->addChild('value', null, $podcastNamespace);
$valueElement->addAttribute('type', 'webmonetization');
$valueElement->addAttribute('method', '');
$valueElement->addAttribute('suggested', '');
$valueElement->addAttribute('method', 'ILP');
$recipientElement = $valueElement->addChild('valueRecipient', null, $podcastNamespace);
$recipientElement->addAttribute('name', $podcast->owner_name);
$recipientElement->addAttribute('type', 'ILP');
$recipientElement->addAttribute('type', 'paymentpointer');
$recipientElement->addAttribute('address', $podcast->payment_pointer);
$recipientElement->addAttribute('split', '100');
}