You need to add these 2 additional line of codes into the generated code to match your settings in the SubscriptionMate dashboard.
<-- "item_number" = product/item #ID <-- "custom" = membership level, eg. 5 means mbrship level5. More info in the Subscription_PaypalSetup.pdf guide.
More info in the Subscription_PaypalSetup.pdf guide.