refactor(webmonetization): update value tag to follow new WM proposal
This commit is contained in:
parent
0bb1c9635a
commit
5227b5fc29
|
@ -90,11 +90,10 @@ if (! function_exists('get_rss_feed')) {
|
||||||
if ($podcast->payment_pointer !== null) {
|
if ($podcast->payment_pointer !== null) {
|
||||||
$valueElement = $channel->addChild('value', null, $podcastNamespace);
|
$valueElement = $channel->addChild('value', null, $podcastNamespace);
|
||||||
$valueElement->addAttribute('type', 'webmonetization');
|
$valueElement->addAttribute('type', 'webmonetization');
|
||||||
$valueElement->addAttribute('method', '');
|
$valueElement->addAttribute('method', 'ILP');
|
||||||
$valueElement->addAttribute('suggested', '');
|
|
||||||
$recipientElement = $valueElement->addChild('valueRecipient', null, $podcastNamespace);
|
$recipientElement = $valueElement->addChild('valueRecipient', null, $podcastNamespace);
|
||||||
$recipientElement->addAttribute('name', $podcast->owner_name);
|
$recipientElement->addAttribute('name', $podcast->owner_name);
|
||||||
$recipientElement->addAttribute('type', 'ILP');
|
$recipientElement->addAttribute('type', 'paymentpointer');
|
||||||
$recipientElement->addAttribute('address', $podcast->payment_pointer);
|
$recipientElement->addAttribute('address', $podcast->payment_pointer);
|
||||||
$recipientElement->addAttribute('split', '100');
|
$recipientElement->addAttribute('split', '100');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue