Help with BEP20 crowdsale contract!

Hello community,

I am trying to use on the BSC testnet a crowdsale for a BEP20 token I've created. But I just have no idea where to begin. I see some codes for ERC20 crowdsales, etc. but cannot seem to put up a correct code to create a contract that will send the Token i've created to an adress that send BNB to the contract.

Can someone give me a hint how to begin to implement a simple crowdsale contract ?

Thanks

There is a simple example in the forum: Help me write an erc20 token and a crowdsale contract

Crowdsales are in OpenZeppelin Contracts 2.x (they were removed in 3.x). The documentation is here: https://docs.openzeppelin.com/contracts/2.x/crowdsales

Unfortunately the example is not working ... and it outputs all kind of errors

In this Crowdsale.sol | openzeppelin-contracts/ contract, you can but token with ETH(BSC), so does not this meet your requirements?

I keep getting this error when trying to send funds to the crowdsale contract ... "Fail with error 'SafeERC20: low-level call failed'"

I am able to buy tokens from the crowdsale contract (if I send tokens to the contract only. not working for the contract to spend tokens from other wallet) but only if I use the Buy token interface in remix. If I send BNB to the crowdsale contract it does not send tokens.