Hallo, allerseits!
Ich muss Euch leider wieder mal nerven.
Aus einem mir unverständlichen Grund wird mir auf meinen Webseiten der Paypal Button Container nicht angezeigt, wenn ich ihn per HTML-Absatz einbaue.
Diesen Paypal-Checkout-Button benötige ich, um Abonnements abwickeln zu können.
Dieser Code wird direkt von Paypal zur Verfügung gestellt. Client-ID habe ich gelöscht.
<div id="paypal-button-container-P-6UX44120DU226843KMXVBMXY"></div>
<script src="https://www.paypal.com/sdk/js?client-id=>>>>>>CLIENT-ID GELÖSCHT<<<<<&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'subscribe'
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: 'P-6UX44120DU226843KMXVBMXY'
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render('#paypal-button-container-P-6UX44120DU226843KMXVBMXY'); // Renders the PayPal button
</script>
Ist da irgendwas mir nicht Offensichtliches, was ich übersehen habe?
Danke Euch für die Hilfe.
LG,
Alex